class Pix { float _x; float _y; // float _xf; float _yf; // float _speed; // color _color; boolean enabled; // public Pix() { } void init(float $x, float $y, float $xf, float $yf, int $col){ _x = $x; _y = $y; _xf = $xf; _yf = $yf; _speed=5f; _color = $col; if((_color>>>24 & 0xff) == 0){ enabled = false; }else{ enabled = true; } } void moveMe() { _x+=(_xf-_x)/_speed; _y+=(_yf-_y)/_speed; } }