1.新增选择器 Text-fill-color: 文字内部填充颜色 Text-stroke-color: 文字边界填充颜色 Text-stroke-width: 文字边界宽度 Column-count:表示布局几列。 Column-rule:表示列与列之间的间隔条的样式 Column-gap:表示列 ...
分类:
Web程序 时间:
2016-09-06 23:04:27
阅读次数:
137
在WPF中,自定义控件,经常用到Path. Path可以绘制多边形、边框、线条、简单的图标等。 1、Xaml中用法: <Path Stroke="DodgerBlue" StrokeThickness="1" Data="M50,50 L100,200 L200,50 L50,50"></Path> ...
Context.moveTo(20,20); Context.lineTo(20,200); Context.lineWidth=10; Context.lineCap=”round”; Context.lineJoin=”round”; Context.stroke(); Context.setL ...
分类:
Web程序 时间:
2016-09-06 12:15:49
阅读次数:
177
Canvas 设置开始绘图位置:ctx.moveTo(x,y); 设置直线到的位置:ctx.lineTo(x,y); 描边绘制:ctx.stroke(); 填充绘制:ctx.fill(); 自动闭合路径:ctx.closePath(); 开启新的绘制:ctx.beginPath(); 设置描边颜色: ...
分类:
其他好文 时间:
2016-08-25 20:19:02
阅读次数:
158
1.beginPath() 2.closePath() 3.moveTo(x,y) 将鼠标移动到这个坐标 4.lineTo(x,y) 经鼠标从当前位置到连接到一个指定的点 5.stroke() 将线绘制到画布上 6.save() 保存当前绘图状态 7.restore() 恢复到原有的绘画状态 8.t ...
// A simple blur shader, weighted on alphauniform sampler2D texture;void main(){ float radius = 0.01; vec4 accum = vec4(0.0); vec4 normal = vec4(0.0); ...
分类:
其他好文 时间:
2016-08-23 01:22:16
阅读次数:
150
#本文基于androidsdk22在androidgraphics模块中有一类特效类叫做“patheffect”,他们有一个共同的基类“PathEffect”。这些patheffect的唯一目的就是给path增加特效,换句话话说只有当paint的style为“STROKE”或者“FILL_AND_STROKE”时,patheffect才会生效。添加patheffect..
分类:
移动开发 时间:
2016-08-19 13:25:11
阅读次数:
347
wpf 前台绘制圆弧很简单,如:<Path x:Name="path_data" Stroke="#FFE23838" StrokeThickness="1" Data="M 100,0 A 50,100 0 0 0 100,200"></Path> 注解:M 起始点 (100,0) A 尺寸(X5 ...
分类:
Windows程序 时间:
2016-08-11 19:24:40
阅读次数:
1148
SVG描边动画原理其实很简单,主要利用以下两个属性 stroke-dasharray 制作虚线,使得黑白相间, stroke-dashoffset 使得虚线向开头偏移,这里的1500不精确,是我随便取的,下文介绍通过JS获取长度。 动画就是减少虚线偏移,那么实线就会慢慢漏出来了 JS获取长度 var ...
分类:
其他好文 时间:
2016-08-01 01:36:49
阅读次数:
200