Existing options

  • gradient
  • Pure color
  • No fill color

History of how colors are handled during iteration

  • It starts with TRUE/FALSE
  • A third case has been added, in which TRUE and FALSE cannot be used
  • An extra attribute is added to create a priority
  • Determine if there is a gradient, then a solid color, then no fill color

A better way to handle it

  • Set the options and determine directly which option is used