LogoLogo
Version 3
Version 3
  • Version 3
  • Welcome to Flying Logic 3
  • Flying Logic Resources
  • Recommended Reading
  • Flying Logic 3 User Guide
    • Getting Started
    • What's New
    • Reader Mode
    • The Document Window
    • Constructing Graphs
    • Graph Logic
    • Domains
    • Chart View
    • Scripting
    • Menus
    • Keyboard Shortcuts
    • Preferences
    • Project Management
  • Flying Logic 3 Scripting Guide
    • Getting Started
    • Online Resources
    • Predefined Variables
    • Classes
      • Application
      • CalendarEvent
      • Color
      • Date
      • Document
      • Domain
      • Edge
      • EntityClass
      • Entity
      • FontSpec
      • GraphElemFilter
      • GraphElem
      • GraphOperator
      • Group
      • Junctor
      • LayoutLine
      • Resource
      • Symbol
      • TextEditor
      • VertexElem
      • VertexOperator
      • Workweek
    • Constants
    • Graphic Symbol Names
    • Importer and Exporter Examples
    • Flying Logic Document Format
  • Thinking with Flying Logic
    • Part I: Introduction
    • About This Book
    • Keys to Great Thinking
    • Part II: The Theory of Constraints Thinking Processes
    • Overview of the Theory of Constraints
    • The Categories of Legitimate Reservation
    • Current Reality Tree
    • Evaporating Cloud: Conflict Resolution
    • Future Reality Tree
    • Prerequisite Tree
    • Transition Tree
    • Strategy & Tactics Tree
    • Part III: Other Techniques
    • Evidence-Based Analysis
    • Concept Maps
Powered by GitBook
On this page
  • Fields
  • Methods
  • Pre-defined colors

Was this helpful?

  1. Flying Logic 3 Scripting Guide
  2. Classes

Color

PreviousCalendarEventNextDate

Last updated 1 year ago

Was this helpful?

The Color class represents an RGB color value. Color instances are immutable. The constructors are accessible from scripts.

Fields

Field

Type

Description

r

number

Read only. The red component, as a value between 0.0 and 1.0.

g

number

Read only. The green component, as a value between 0.0 and 1.0.

b

number

Read only. The blue component, as a value between 0.0 and 1.0.

a

number

Read only. The alpha component, as a value between 0.0 and 1.0.

Methods

init( r, g, b )

Constructs a new Color instance with the given red, green and blue values (in the range 0.0 to 1.0) and an alpha of 1.0.

init( r, g, b, a )

Constructs a new Color instance with the given red, green, blue and alpha values (in the range 0.0 to 1.0).

init( name )

Constructs a new Color instance derived from standard HTML color hex value or color name; e.g., “#FF0000”, “white”, “black”, “orange”, etc. See for a link to a complete list.

equals( object )

Returns True if object represents the same color as self within a set tolerance.

Pre-defined colors

These are class variables of Color. Note that some are not a match for the HTML color name equivalent; e.g., ORANGE is the not the same color as HTML “orange”.

Name

r

g

b

BLACK

0.00

0.00

0.00

WHITE

1.00

1.00

1.00

RED

1.00

0.00

0.00

ORANGE

1.00

0.50

0.00

YELLOW

1.00

1.00

1.00

GREEN

0.00

1.00

0.00

BLUE

0.00

0.00

1.00

VIOLET

1.00

0.00

0.50

CYAN

0.00

1.00

1.00

MAGENTA

1.00

0.00

1.00

GRAY

0.50

0.50

0.50

LIGHT_GRAY

0.75

0.75

0.75

DARK_GRAY

0.25

0.25

0.25

Online Resources