From 184d9e7a66b09adf9309ddd7ed29681486eb69ba Mon Sep 17 00:00:00 2001 From: guo-yong-zhi <55872791+guo-yong-zhi@users.noreply.github.com> Date: Tue, 20 Jul 2021 22:08:09 +0800 Subject: [PATCH] padding doc --- src/rendering.jl | 2 ++ src/wc-helper.jl | 1 + 2 files changed, 3 insertions(+) diff --git a/src/rendering.jl b/src/rendering.jl index e9f16a1..6828de8 100644 --- a/src/rendering.jl +++ b/src/rendering.jl @@ -319,6 +319,8 @@ generate a box, ellipse or squircle svg image * shape(ellipse, 80, 50, color="red") #80*50 red ellipse * shape(box, 80, 50, backgroundcolor=(0,1,0), backgroundsize=(100, 100)) #80*50 box on 100*100 green background * shape(squircle, 80, 50, outline=3, linecolor="red", backgroundcolor="gray") #add a red outline to the squircle +outline: an Integer +padding: an Integer or a tuple of two Integers """ function shape(shape_, width, height, args...; outline=0, linecolor="black", padding=0, diff --git a/src/wc-helper.jl b/src/wc-helper.jl index 0d5e620..5d13786 100644 --- a/src/wc-helper.jl +++ b/src/wc-helper.jl @@ -20,6 +20,7 @@ load a img as mask, recolor, or resize, etc * loadmask("res/heart.jpg", transparent=rgba->maximum(rgba[1:3])*(rgba[4]/255)>128) #set transparent with a Function * loadmask("res/heart.jpg", color="red", transparent=(1,1,1)) #set forecolor and transparent * loadmask("res/heart.svg") #other arguments are not supported +padding: an Integer or a tuple of two Integers About orther keyword arguments like outline, linecolor, smoothness, see function `outline`. """ function loadmask(img::AbstractMatrix{<:TransparentRGB}, args...;