forked from GalenIvanov/Animation-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfill-pen.red
46 lines (37 loc) · 1.27 KB
/
fill-pen.red
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Red [
title: "Animation tests - pen and fill-pen"
author: "Galen Ivanov"
needs: view
]
#include %../Animate.red
img: load %red-logo.png
fill: [
fill-pen sky
pen from sky to teal
box 0x0 100x100
fill-pen radial red from white to black teal red from 0x0 to 120x80 40 repeat
line-width 10
start 0 duration 5 loop two-way forever
pen radial red from orange to black from black to red red from 100x50 to -100x50 60 repeat
matrix [1 0 0 1 0 0]
box123: box 20x20 80x80
]
anim-block: compose/deep [
start 1 duration 3 loop two-way forever
;ill-pen from red to black
;fill-pen linear from red to blue from green to papaya from white to black from -100x0 to 100x0 200x0
;fill-pen radial red from white to black teal red from 0x0 to 120x80 40 repeat
;fill-pen diamond red white blue red ; doesn't seem correct
;fill-pen bitmap img ;500x500 800x800
;circle 400x400 380
fill-pen pattern 100x100 [(fill)]
scale 'fill-pen from 0.5 to 2.0 from 0.5 to 2.0
translate 'fill-pen from 0x0 to 100x100
rotate 'fill-pen from 0.0 to 90.0 500x500
circle 300x300 280
]
print "start"
view compose [
canvas: base 600x600 beige rate 67
draw animate anim-block
]