Skip to content

Shape Element Properties

Shane Brinkman-Davis edited this page Mar 21, 2016 · 3 revisions
  • color
    • single fill color
    • Note: any legal Art.Atomic.Color color-value can be provided
  • colors
    • GradientFillStyle colors:
      • array of colors: ["red", "green", "blue"]
      • map of positions to colors: 0: "red", 0.75: "blue", 1: "green"
      • array of color and positions: [{n: 0, c: "red"}, {n: .75, c: "blue"}, {n: 1, c: "green"}`
    • Note: any legal Art.Atomic.Color color-value can be provided
  • from/to
    • (point) gradient start/end locations respectively
    • defaults:
      • from: 'topLeft' # point(0)
      • to: 'bottomLeft' # point(0, 1)
    • multiplied by Element's size (e.g. point(1) is the lower-right corner)
    • Note: any legal Art.Atomic.Point value can be provided:
      • 'bottomCenter' -> point .5, 1
      • 1 -> point 1, 1
      • [1, 2] -> point 1, 2
      • x: 1, y: 2 -> point 1, 2
  • shadow
    • color - legal Art.Atomic.Color values
    • offsetY - number
    • offsetX - number
    • blur - number

Clone this wiki locally