XFL边缘定义中非数值的意义是什么? [英] What's the meaning of the non numerical values in the XFL's edge definition?

查看:147
本文介绍了XFL边缘定义中非数值的意义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XFL是新的未压缩ADOBE FLASH(CS5)源文件,它由XML定义组成,其中大部分都是清晰的,但不幸的是,重要的一个是奇怪的。



展望各种现有的资源,我可以看到形状的EDGE定义如下:

$ $ $ $ $ $ $ $ $&$; Edge strokeStyle =1edges = !0 0S4 | 180 0/>
< Edge strokeStyle =1edges =!2720 2720S6 | 0 2720!0 2720 | 0 0!0 0/2720 2720/>
< Edge fillStyle1 =1edges =!3532 1539.5S2 [#BD9.4D#577.3C 2952.5 1756.5!2952.5 1756.5 [#AF6.DA#4C6.1D 3584 1119!3584 1119 | 3532 1539.5 />

做一些测试我可以这样说:

 ! ==移动到位置
| ==从位置画线到新的位置
/ ==大概像| |一样
[==绘制曲线
(==可能与[

相同什么意思是像 S4 #BD9.4D
这样的值我还没有被证明的猜测是,值可能是不知何故编码了非常小的数字,我不知道什么可以是 S4

c $ c>!(x,y) moveTo



/(x,y)+
$ p $ | $($ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ b

[(x1 y1 ex ey)+ curveTo(quadratic))

(x1 y1 ex ey)+ curveTo(二次函数)

x2 y2 ex ey(({Q,q,P,p})?xy)+ curveTo(立方起点)

curveTo(立方结束)

Sn selection(n = bitmask,1:fillStyle0,2:fillStyle1,4:stroke)

$ p $ aaaaaa.bb
是一个带符号的固定点32位数字

XFL is the new uncompressed ADOBE FLASH (CS5) source file, it consists from XML definitions, most of them are clear but unfortunately, the important one are strange.

Looking to various existing sources, I can see shape's EDGE definitions like:

<Edge strokeStyle="1" edges="!0 0S4|180 0"/>
<Edge strokeStyle="1" edges="!2720 2720S6|0 2720!0 2720|0 0!0 0/2720 2720"/>
<Edge fillStyle1="1" edges="!3532 1539.5S2[#BD9.4D #577.3C 2952.5 1756.5!2952.5 1756.5[#AF6.DA #4C6.1D 3584 1119!3584 1119|3532 1539.5"/> 

Doing some tests I can say, that:

! == move to position
| == draw line from the position to the new position
/ == probably same like |
[ == draw curve
( == probably same like [

But what means the values like S4 or #BD9.4D? My not proved yet guess is, that the # values could be somehow encoded very small numbers. I have no clue what could be the S4.

解决方案

!(x,y) moveTo

/(x,y)+ lineTo

|(x,y)+ lineTo

[(x1 y1 ex ey)+ curveTo (quadratic)

](x1 y1 ex ey)+ curveTo (quadratic)

((pBCPx pBCPy)? ; x1 y1 x2 y2 ex ey (({Q,q,P,p})? x y)+ curveTo (cubic start)

)(nBCPx nBCPy)? ; curveTo (cubic end)

Sn selection (n=bitmask, 1:fillStyle0, 2:fillStyle1, 4:stroke)

#aaaaaa.bb is a signed fixed point 32 bit number

这篇关于XFL边缘定义中非数值的意义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆