-
-
左小珍
2018-01-22
- 走进SVG
第三章 颜色、渐变和笔刷
3-3 笔刷
.绘制纹理
.<pattern>标签
.patternUnits="userSpaceOnUse"(指定pattern标签本身的属性单位基于世界坐标系)
patternContentUnits="objectBoundingBox"(pattern里面的每一个元素的单位都是基于绘制图形的一个八维盒)
r=0.1 80
-
截图
0赞 · 1采集
-
-
xgqfrms
2016-07-31
- <defs>
<pattern id="pattern2" x="0" y="0" width="0.3" height="0.3" pattern="userSpaceOnUse" patternUnits="objectBoundingBox">
<circle cx="10" cy="10" r="5" fill="rgba(255,0,0,0.7)"></circle>
<polygon points="30 10 60 50 0 50" fill="rgba(0,0,255,0.7)"></polygon>
</pattern>
</defs>
<rect x="400" y="300" width="100" height="100" fill="url(#pattern2)" stroke="rgba(0,255,0,0.7)"></rect>
<defs>
<pattern id="pattern3" x="0" y="0" width="0.3" height="0.3" pattern="objectBoundingBox" patternUnits="objectBoundingBox">
<circle cx="10" cy="10" r="5" fill="rgba(255,0,0,0.7)"></circle>
<polygon points="30 10 60 50 0 50" fill="rgba(0,0,255,0.7)"></polygon>
</pattern>
</defs>
<rect x="500" y="300" width="100" height="100" fill="url(#pattern3)" stroke="rgba(0,255,0,0.7)"></rect>
-
截图
0赞 · 0采集
-
-
xgqfrms
2016-07-31
- 1.pattern 笔刷。
笔刷用来定义一个可以在boundingbox上重复铺满的图案集合。
2.patternUnits指定pattern在rect里的单位,
patternContentUnits指定pattern的内容的单位是基于rect的
patternUnits patternContentUnits 可取值 userSpaceOnUse objectBoundingBox
objectBoundingBox 模式下的比例均为相对于boundingbox。
也就是不是根据父标签来定义比例。
-
截图
0赞 · 0采集
-
-
GavinLi_cn
2016-07-20
- 笔刷。
-
截图
0赞 · 0采集
-
-
Sweet_Gao
2016-05-04
- 1.pattern 笔刷。笔刷用来定义一个可以在boundingbox上重复铺满的图案集合。
2.patternUnits指定pattern在rect里的单位,patternContentUnits指定pattern的内容的单位是基于rect的
patternUnits patternContentUnits 可取值 userSpaceOnUse objectBoundingBox
objectBoundingBox 模式下的比例均为相对于boundingbox。也就是不是根据父标签来定义比例。
-
截图
0赞 · 2采集
-
-
堕落桌子
2016-03-25
- 笔刷,调用
-
截图
0赞 · 0采集
-
-
鼠儿果999
2015-11-16
- 基于世界坐标系
-
截图
0赞 · 0采集
-
-
Bestcode
2015-11-13
- pattern 笔刷。笔刷用来定义一个可以在boundingbox上重复铺满的图案集合。
patternUnits patternContentUnits 可取值 userSpaceOnUse objectBoundingBox
objectBoundingBox 模式下的比例均为相对于boundingbox。也就是不是根据父标签来定义比例
-
截图
0赞 · 0采集
-
-
Bestcode
2015-11-10
- pattern
-
截图
0赞 · 0采集
-
-
梭梭
2015-11-09
- patternUnits指定pattern在rect里的单位,patternContentents指定pattern的内容的单位是基于rect的
-
0赞 · 0采集
-
-
梭梭
2015-11-09
- 笔刷,重复刷图形
-
截图
0赞 · 0采集
-
-
饭太咸了
2015-08-04
- 笔刷的概念
-
截图
0赞 · 0采集
-
-
水木3郎
2015-01-19
- <pattern> 笔刷,定义一组重用于填充或绘制造型的图元,width、 height
patternUnits 笔刷使用单位
patternContentUnits 笔刷内容(笔刷内部包含的图形单元)使用单位
-
0赞 · 0采集
-
-
慕圣5094845
2015-01-18
- 定义一组重用于填充或绘制造型的图元。
不考虑 patternUnits 属性,它被视为与属性 userSpaceOnUse 相同。
仅解释用位图阵列定义的阵列。不识别用向量元素集定义的阵列。
因此,阵列元素的子级应为 <image> 类型。这样可以读取包含填充纹理的工程制图文档。
-
0赞 · 2采集
-
-
慕圣5094845
2015-01-18
- svg pattern
-
0赞 · 0采集
-
-
慕圣5094845
2015-01-18
- 笔刷 《pattern标签》
-
0赞 · 0采集
-
-
狐小鱼
2014-12-26
- SVG 笔刷,笔刷主要是用来绘制纹理,即进行一个重复的填充。
-
截图
0赞 · 0采集