Skip to content

Commit

Permalink
fill, stroke, nofill and nostroke set basic material
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblesan committed Jan 30, 2022
1 parent dd341da commit 09e3dba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stdlib/style.pz
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,23 @@ func fill(r, g, b, a, &blk)
s = :fill
if (isNull(blk))
style(s, r, g, b, a)
intMaterial(:material, :basic)
else
pushScope()
style(s, r, g, b, a)
intMaterial(:material, :basic)
blk()
popScope()

func noFill(&blk)
s = :noFill
if (isNull(blk))
style(s)
intMaterial(:material, :basic)
else
pushScope()
style(s)
intMaterial(:material, :basic)
blk()
popScope()

Expand All @@ -53,19 +57,23 @@ func stroke(r, g, b, a, &blk)
s = :stroke
if (isNull(blk))
style(s, r, g, b, a)
intMaterial(:material, :basic)
else
pushScope()
style(s, r, g, b, a)
intMaterial(:material, :basic)
blk()
popScope()

func noStroke(&blk)
s = :noStroke
if (isNull(blk))
style(s)
intMaterial(:material, :basic)
else
pushScope()
style(s)
intMaterial(:material, :basic)
blk()
popScope()

Expand Down

0 comments on commit 09e3dba

Please sign in to comment.