Skip to content

Commit

Permalink
padding doc
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yong-zhi committed Jul 20, 2021
1 parent f3fdbd3 commit 184d9e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rendering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/wc-helper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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...;
Expand Down

0 comments on commit 184d9e7

Please sign in to comment.