Class AdditiveSubtractiveLight

java.lang.Object
Basic.development.AdditiveSubtractiveLight

public class AdditiveSubtractiveLight extends Object

This example tests various color combination capabilities, and also demonstrating that filtering (negative colors) are not supported in the X3D/VRML color model. Discussion follows. There are 2 ways to combine colors: Additive (e.g. a TV screen, overlapping spotlights, or pointillist art), for example [red + green = yellow] [1 0 0 + 0 1 0 = 1 1 0]. Subtractive (e.g. mixing paints or stacking filters), for example [white background + yellow filter + cyan filter = green] [1 1 1 + 0 0 -1 + -1 0 0 = 0 1 0].

Related links: AdditiveSubtractiveLight.java source, AdditiveSubtractiveLight catalog page, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.

Scene Meta Information
meta tags   Document Metadata
title AdditiveSubtractiveLight.x3d
description This example tests various color combination capabilities, and also demonstrating that filtering (negative colors) are not supported in the X3D/VRML color model. Discussion follows. There are 2 ways to combine colors: Additive (e.g. a TV screen, overlapping spotlights, or pointillist art), for example [red + green = yellow] [1 0 0 + 0 1 0 = 1 1 0]. Subtractive (e.g. mixing paints or stacking filters), for example [white background + yellow filter + cyan filter = green] [1 1 1 + 0 0 -1 + -1 0 0 = 0 1 0].
creator Miriam English
translator Xeena VRML importer, X3D-Edit 3.1, https://www.web3d.org/x3d/content/README.X3D-Edit.html
translator Don Brutzman and MV4205 class
created 6 May 2003
translated 6 May 2003
modified 20 October 2019
reference additive-subtractiveLight2.7May2003.x3d
reference http://www.rgbworld.com/color.html
Image AdditiveSubtractiveLight.png
subject additive subtractive light examples
identifier https://www.web3d.org/x3d/content/examples/Basic/development/AdditiveSubtractiveLight.x3d
generator X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit
generator Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html
license ../license.html
 

This program uses the X3D Java Scene Access Interface Library (X3DJSAIL). It has been produced using the X3dToJava.xslt stylesheet (version control) is used to create Java source code from an original .x3d model.

  • Constructor Details

    • AdditiveSubtractiveLight

      public AdditiveSubtractiveLight()
      Default constructor to create this object.
  • Method Details

    • initialize

      public final void initialize()
      Create and initialize the X3D model for this object.
    • getX3dModel

      public org.web3d.x3d.jsail.Core.X3D getX3dModel()
      Provide a shallow copy of the X3D model.
      Returns:
      AdditiveSubtractiveLight model
      See Also:
    • main

      public static void main(String[] args)
      Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
      Parameters:
      args - array of input parameters, provided as arguments
      See Also: