summaryrefslogtreecommitdiff
path: root/libs/cairo-1.16.0/util/cairo-script/examples/interference.cs
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-02-12 23:53:22 -0600
committersanine <sanine.not@pm.me>2023-02-12 23:53:22 -0600
commitf1fe73d1909a2448a004a88362a1a532d0d4f7c3 (patch)
treeab37ae3837e2f858de2932bcee9f26e69fab3db1 /libs/cairo-1.16.0/util/cairo-script/examples/interference.cs
parentf567ea1e2798fd3156a416e61f083ea3e6b95719 (diff)
switch to tinyobj and nanovg from assimp and cairo
Diffstat (limited to 'libs/cairo-1.16.0/util/cairo-script/examples/interference.cs')
-rw-r--r--libs/cairo-1.16.0/util/cairo-script/examples/interference.cs46
1 files changed, 0 insertions, 46 deletions
diff --git a/libs/cairo-1.16.0/util/cairo-script/examples/interference.cs b/libs/cairo-1.16.0/util/cairo-script/examples/interference.cs
deleted file mode 100644
index 6d2ee22..0000000
--- a/libs/cairo-1.16.0/util/cairo-script/examples/interference.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-/rot { 3 -1 roll } def
-/2dup { 2 copy } def
-
-/circle { % context radius -- context
- 2dup 0 m pop
- 0 0 rot 0 math.2pi arc h
-} def
-
-/circles { % context #circles -- context
- 1 1 rot { circle } for
-} def
-
-/SIDE 600. def
-/SIZE 600. def
-<< /width SIZE /height SIZE >> surface context
-1 1 1 set-source-rgb paint
-0 0 0 set-source-rgb
-//EVEN_ODD set-fill-rule
-
-/r 4 def
-/n SIDE 1.5 mul r div integer def
-
-SIZE SIDE div dup scale
-
-save
- 302 200 translate
- r dup scale
- n circles
-restore
-
-save
- 100 300 translate
- r dup scale
- n circles
-restore
-
-save
- 500 400 translate
- r dup scale
- n circles
-restore
-
-fill
-
-/target get (out.png) write-to-png pop
-pop