Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Properties

DefaultValue

Notes

start

 

may be a java.awt.Shape or any shape operation

end

 

may be a java.awt.Shape or any shape operation

morph

0

float value in the range (0..1)

...

Code Block
def rect = rect( x: 20, y: 50, width: 100, height: 100, arcWidth: 20, arcHeight: 20, asShape: true)
def star = star( x: 20, y: 50, ir: 50, or: 80, count: 5, asShape: true )
morph( start: rect, end: star, morph: 0.1, borderWidth: 3, borderColor: 'orange', fill: 'yellow' )
morph( start: rect, end: star, morph: 0.8, borderWidth: 3, borderColor: 'blue', fill: 'cyan' ){
   transformations { translate(x: 140, y: 0) }
}

Image Added