This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

DynamicColor

From BZFlagWiki
Revision as of 04:43, 10 October 2007 by 24.25.198.49 (talk) (New page: === Code === {| | dynamicColor name example_dyncol red limits 0 1 green sinusoid 0.1 0 0.25 blue clampUp 0.1 0 0.75 ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Code

      dynamicColor
        name example_dyncol
        red limits 0 1               
        green sinusoid 0.1 0 0.25    
        blue clampUp 0.1 0 0.75      
        alpha clampDown 0.2 0.5 0.5  
        red sequence 0.0 0.0 2 0 1 1 2 0 ... 
      end

The valid parameters for dynamicColor are:

  1. min/max limits
  2. period, offset, weight
  3. period, offset, width
  4. period, offset, width
  5. period, offset, list of states

<properties> Color Settings:

Channels: red, green, blue, alpha - Commands: limits, sinusoid, clampUp, clampDown, sequence (repeatable, except "limits" and "sequence")

        # except for "limits" and "sequence", the commands are repeatable
        # if "sequence" used then clampUps/clampDowns have no effect
        # sequences can use three states (0, 1, 2).
        #   0 - equivalent to an active clampDown
        #   1 - equivalent to no clamps
        #   2 - equivalent to an active clampUp
        # if both clampUp and clampDown are active, the value is (min+max)/2
        # the sinusoid function starts at the max value
        # the sum of a channel's sinusoids is clamped between 0 and 1

</properties>