Stylo Doodles

Snowman

Details

Author:

Stephanie Jones

Dimensions:

1920 x 1080

Stylo Version:

0.6.0
Show Source Show Notes Show Both

Source

from stylo.image import LayeredImage
from stylo.color import FillColor
from stylo.shape import Circle, Rectangle, Triangle
from stylo.domain.transform import translate
black = FillColor("000000")
seablue = FillColor("0000ff")
white = FillColor("ffffff")
yellow = FillColor("ffff00")
red = FillColor("dd2300")
orange = FillColor("FFA500")
Bottom = Circle(x=0, y=-2.4 , r=1.5, fill=True)
Middle = Circle(x=0 , y=0, r=1, fill=True)
Top = Circle(x=0, y=1.75, r=0.75, fill=True)
Sky = Rectangle(0, 10, 10, 10)
Hat_base = Rectangle(0, 2.3, 1.75,0.3)
Eye1 = Circle(x=-0.25, y=1.75, r=0.15, fill=True)
Eye2 = Circle(x=0.25, y=1.75, r=0.15, fill=True)
Nose = Triangle((-0.15,1.5), (0.15,1.5) , (0,1.2))
Button1 = Circle(x=0, y=0.25, r=0.10, fill=True)
Button2 = Circle(x=0, y=-0.25, r=0.10, fill=True)
Scarf_horiz = Rectangle(0, 1, 0.9, 0.3)
Scarf_vert = Rectangle(0.3, 0.6, 0.3, 1)
Ribbon = Rectangle(0, 2.5, 1.3, 0.2)
Tophat = Rectangle(0, 2.9, 1.3, 0.7)
image = LayeredImage(background="99ddee", scale=8)
image.add_layer(Bottom ,white )
image.add_layer(Middle, white)
image.add_layer(Top, white)
image.add_layer(Sky, black)
image.add_layer(Eye1, black)
image.add_layer(Eye2, black)
image.add_layer(Nose, orange)
image.add_layer(Button1, black)
image.add_layer(Button2, black)
image.add_layer(Scarf_horiz, yellow)
image.add_layer(Scarf_vert, yellow)
image.add_layer(Hat_base, black)
image.add_layer(Ribbon, red)
image.add_layer(Tophat, black)