17 public SFColor(
float red,
float green,
float blue) {
23 public void getValue(
float[] values) {
30 public float getRed() {
35 public float getGreen() {
40 public float getBlue() {
45 public void setValue(
float red,
float green,
float blue) {
53 public void setValue(
float[] values) {
55 this.green = values[1];
56 this.blue = values[2];
61 sfColor.__updateRead();
63 green = sfColor.green;
68 public void setValue(
SFColor sfColor) {
69 sfColor.__updateRead();
71 green = sfColor.green;
77 public String toString() {
79 return ""+red+
" "+green+
" "+blue;
82 public void __fromPerl(BufferedReader in)
throws IOException {
85 red = Float.parseFloat(in.readLine());
86 green = Float.parseFloat(in.readLine());
87 blue = Float.parseFloat(in.readLine());
90 public void __toPerl(PrintWriter out)
throws IOException {
91 out.print(red+
" "+green+
" "+blue);