From 09e3dbaff6e99e0cdfbcfd5e2037d9f28455daf8 Mon Sep 17 00:00:00 2001 From: Guy John Date: Sun, 30 Jan 2022 16:09:27 +0000 Subject: [PATCH] fill, stroke, nofill and nostroke set basic material --- stdlib/style.pz | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stdlib/style.pz b/stdlib/style.pz index 99e3603..9cbe014 100644 --- a/stdlib/style.pz +++ b/stdlib/style.pz @@ -29,9 +29,11 @@ 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() @@ -39,9 +41,11 @@ func noFill(&blk) s = :noFill if (isNull(blk)) style(s) + intMaterial(:material, :basic) else pushScope() style(s) + intMaterial(:material, :basic) blk() popScope() @@ -53,9 +57,11 @@ 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() @@ -63,9 +69,11 @@ func noStroke(&blk) s = :noStroke if (isNull(blk)) style(s) + intMaterial(:material, :basic) else pushScope() style(s) + intMaterial(:material, :basic) blk() popScope()