< prev index next >
modules/javafx.graphics/src/main/java/javafx/scene/paint/Color.java
Print this page
*** 53,72 ****
* utility methods. The following lines of code all create the same
* blue color:</p>
*
* <pre><code>
* Color c = Color.BLUE; //use the blue constant
! * Color c = new Color(0,0,1,1.0); // standard constructor, use 0->1.0 values, explicit alpha of 1.0
*
! * Color c = Color.color(0,0,1.0); //use 0->1.0 values. implicit alpha of 1.0
! * Color c = Color.color(0,0,1.0,1.0); //use 0->1.0 values, explicit alpha of 1.0
*
! * Color c = Color.rgb(0,0,255); //use 0->255 integers, implicit alpha of 1.0
! * Color c = Color.rgb(0,0,255,1.0); //use 0->255 integers, explicit alpha of 1.0
*
! * Color c = Color.hsb(270,1.0,1.0); //hue = 270, saturation & value = 1.0. inplicit alpha of 1.0
! * Color c = Color.hsb(270,1.0,1.0,1.0); //hue = 270, saturation & value = 1.0, explicit alpha of 1.0
*
* Color c = Color.web("0x0000FF",1.0);// blue as a hex web value, explicit alpha
* Color c = Color.web("0x0000FF");// blue as a hex web value, implicit alpha
* Color c = Color.web("0x00F");// blue as a short hex web value, implicit alpha
* Color c = Color.web("#0000FF",1.0);// blue as a hex web value, explicit alpha
--- 53,72 ----
* utility methods. The following lines of code all create the same
* blue color:</p>
*
* <pre><code>
* Color c = Color.BLUE; //use the blue constant
! * Color c = new Color(0,0,1,1.0); // standard constructor, use 0->1.0 values, explicit alpha of 1.0
*
! * Color c = Color.color(0,0,1.0); //use 0->1.0 values. implicit alpha of 1.0
! * Color c = Color.color(0,0,1.0,1.0); //use 0->1.0 values, explicit alpha of 1.0
*
! * Color c = Color.rgb(0,0,255); //use 0->255 integers, implicit alpha of 1.0
! * Color c = Color.rgb(0,0,255,1.0); //use 0->255 integers, explicit alpha of 1.0
*
! * Color c = Color.hsb(270,1.0,1.0); //hue = 270, saturation & value = 1.0. inplicit alpha of 1.0
! * Color c = Color.hsb(270,1.0,1.0,1.0); //hue = 270, saturation & value = 1.0, explicit alpha of 1.0
*
* Color c = Color.web("0x0000FF",1.0);// blue as a hex web value, explicit alpha
* Color c = Color.web("0x0000FF");// blue as a hex web value, implicit alpha
* Color c = Color.web("0x00F");// blue as a short hex web value, implicit alpha
* Color c = Color.web("#0000FF",1.0);// blue as a hex web value, explicit alpha
< prev index next >