Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new RGBColorNode(args: Array<[string, string, string, Expression<any>, string]>, preWS?: string, postWS?: string, emptyArgWS?: string): RGBColorNode

Properties

Protected _commentOut

_commentOut: boolean = false

Protected argMap

argMap: Map<string, Argument<any>>

Argument map for functions. Begins with positional args first, then follows with optional named args. Positionals don't have default value and must be supplied, while optional named args MUST have default values. Note: Map traversal is in order of insertion.

Protected name

name: string = "rgb"

Accessors

ws

  • get ws(): string
  • set ws(ws: string): void

Methods

commentOut

  • commentOut(): void

equals

eval

getArg

getBlue

  • getBlue(context: Scope): number

getGreen

  • getGreen(context: Scope): number

getOptionalArgMap

getPositionalArgMap

getRed

  • getRed(context: Scope): number

Protected initArg

  • initArg(posArgMap: Map<string, Argument<any>>, optArgMap: Map<string, Argument<any>>): void

intToHex

  • intToHex(num: number): string

setArg

  • setArg(argName: string, value: Expression<any>): void

setBlue

  • setBlue(context: Scope, val: number): void

setGreen

  • setGreen(context: Scope, val: number): void

setRed

  • setRed(context: Scope, val: number): void

toString

  • toString(): string

updateArgValue

  • updateArgValue(argName: string, scope: Scope, value: any): void

Generated using TypeDoc