Colours

greenspun.com : LUSENET : HTML test forum : One Thread

// // Color Picker Copyright(C)1996. Masakazu Fujimiya // m-fujimiya@nri.co.jp //

import java.awt.*;

public class colorpicker extends java.applet.Applet { Color fColor; int cx,cy,cw,ch; int xsep,ysep; int px,py,sy; int satx,saty,satw,sath; int mainx,mainy,mainw,mainh; double hValue,sValue,bValue; int pox[],poy[]; Image offs; // Offscreen image Graphics grf; // Offscreen graph port public void init() { pox = new int[4]; poy = new int[4]; // Off screen bitmap image offs = createImage(size().width, size().height); grf = offs.getGraphics();

cx = cy = 10; cw = 4 ; ch = 8; xsep = 64 ; ysep = 16; hValue = 0; sValue = 0; bValue = 1; satx = xsep*cw + cx*2; satw = cx*2; saty = cy; sath = ysep*ch; sy = saty + sath; mainx = px = cx; mainy = py = cy; mainw = xsep*cw; mainh = ysep*ch; } public void paint(Graphics g) { int i,j; int ix,iy; int col; float h,s,b; grf.setColor(Color.lightGray); grf.fillRect(0, 0, size().width, size().height); for (i=0 ; ikodanshi@onegai.net), July 14, 2001

Answers

testing emdash



-- testing (test@test.test), July 14, 2001.


Moderation questions? read the FAQ