June 3, 2020 by Chris Johnson. Filed under public, twoville.
I challenged myself to make a tulip in Twoville, and here’s my response:
with viewport center = [0, -2.5] size = [10, 14] crownTop = 4 toothiness = 1 flowerHeight = 3 with rectangle() corner = [-0.25, crownTop - flowerHeight - 10] size = [0.5, 10] color = [0, 0.7, 0] to leaf(sign) with path() closed = true color = [0, 0.7, 0] jump().position = [0, crownTop - flowerHeight - 10] with quadratic() position = [4 * sign, -4] control = [0, -7] with quadratic() position = [0.25 * sign, crownTop - flowerHeight - 10] control = [2 * sign, -9] leaf(1) leaf(-1) with path() closed = true color = [0.9, 0.2, 0.4] jump().position = [0, crownTop] line().position = [-1, crownTop - toothiness] line().position = [-2, crownTop] line().position = [-2, crownTop - flowerHeight] with arc() degrees = 90 center = [0, crownTop - flowerHeight] with mirror() position = :zero2 axis = :up with viewport center = [0, -2.5] size = [10, 14] crownTop = 4 toothiness = 1 flowerHeight = 3 with rectangle() corner = [-0.25, crownTop - flowerHeight - 10] size = [0.5, 10] color = [0, 0.7, 0] to leaf(sign) with path() closed = true color = [0, 0.7, 0] jump().position = [0, crownTop - flowerHeight - 10] with quadratic() position = [4 * sign, -4] control = [0, -7] with quadratic() position = [0.25 * sign, crownTop - flowerHeight - 10] control = [2 * sign, -9] leaf(1) leaf(-1) with path() closed = true color = [0.9, 0.2, 0.4] jump().position = [0, crownTop] line().position = [-1, crownTop - toothiness] line().position = [-2, crownTop] line().position = [-2, crownTop - flowerHeight] with arc() degrees = 90 center = [0, crownTop - flowerHeight] with mirror() position = :zero2 axis = :up expand