PaintBrush Pro

PaintBrush Pro is an easy-to-use, beautifully designed image editor built to help you create or edit images speedily. When you need to quickly crop a photo, add some text to an image, or just do some sketching, PaintBrush Pro will do it for you. You can also paste images copied from any other applications such as Safari, iWork, MS-Office etc. 


Features: 

Draw the beauty with PaintBrush Pro as you would on canvas.

Support image formats such as png, tiff, bmp, jpeg, gif and so on. 

Paint/Drawing with the precise brush.

Undo/Redo Drawing.

Create image from clipboard.

Print your drawing. 

Zoom In/Out images. 

Create multiple image editors simultaneously. 

Support transparency. 

Change canvas/image size. 

Combine multiple images into one. 

Basic shapes tool including rectangle, ellipse and rounded rectangle. 

Line, Bezier, Curve drawing. 

Add text on the image. 

Flip horizontal/vertical. 

Invert colors of the image.

and so on... 


Please feel free to contact us if you have any questions or suggestions. 

Email: SmartRedDragon@gmail.com

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要实现线的头尾效果,可以引入一个贴图来代表线头和线尾的样式,并在代码中根据线的方向和长度将其正确地贴在线的两端。以下是一个简单的示例: 在 Properties 中添加两个贴图属性: ``` _HeadTex("Head Texture", 2D) = "white" {} _TailTex("Tail Texture", 2D) = "white" {} ``` 在 SubShader 中添加以下代码: ``` struct v2f { ... float4 headTailUV : TEXCOORD1; }; v2f vert(appdata v) { v2f o; ... float4 headTailUV = float4(0, 0, 1, 1); float lineLength = length(v.vertex); if (lineLength > 0) { float2 lineDir = normalize(v.vertex.xy); float2 headTailSize = float2(_HeadTex_ST.z - _HeadTex_ST.x, _HeadTex_ST.w - _HeadTex_ST.y) * _Size; float2 headUV = lineDir * headTailSize + float2(0.5, 0.5); float2 tailUV = lineDir * headTailSize + float2(0.5, 0.5); headTailUV = float4(headUV, tailUV); } o.headTailUV = headTailUV; ... } fixed4 frag(v2f i) : SV_Target { ... float4 headTailUV = i.headTailUV; float2 uv = i.uv + (0.5f / size); uv = uv - _UV.xy; uv *= size; float2 headUV = headTailUV.xy; float2 tailUV = headTailUV.zw; float4 headTexel = tex2D(_HeadTex, headUV); float4 tailTexel = tex2D(_TailTex, tailUV); float4 brushTexel = tex2D(_BrushTex, uv); float4 col = brushTexel * _Color; col *= step(0.5, col.a); col.a = 1; if (uv.x < headUV.x) { col *= headTexel; } if (uv.x > tailUV.x) { col *= tailTexel; } clip(col.a - _Cutoff); return col; } ``` 这里的实现假设线的起点在原点,线的方向在 xy 平面上。如果线的起点和方向有变化,需要根据实际情况进行调整。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值