awtooth stuff.
This commit is contained in:
Sandy Noble 2013-08-26 18:09:44 +01:00
parent 65a9c9afc1
commit b09c22123e
3 changed files with 9 additions and 4 deletions

View File

@ -249,8 +249,11 @@ void button_mode_renderSquarePixel()
} }
void button_mode_renderSawPixel() void button_mode_renderSawPixel()
{ {
// if (pixelCentresForMachine != null && !pixelCentresForMachine.isEmpty()) if (getDisplayMachine().pixelsCanBeExtracted() && isBoxSpecified())
// sendSawtoothPixels(); {
Set<PVector> pixels = getDisplayMachine().extractNativePixelsFromArea(getBoxVector1(), getBoxVectorSize(), getGridSize(), sampleArea);
sendSawtoothPixels(pixels);
}
} }
void button_mode_renderCirclePixel() void button_mode_renderCirclePixel()
{ {

View File

@ -1372,7 +1372,9 @@ void keyPressed()
{ {
keys[keyCode] = true; keys[keyCode] = true;
println(KeyEvent.getKeyText(keyCode)); //println("key: " + KeyEvent.getKeyText(keyCode));
//println("Keys: " + keys);
//println("Keycode: " + keyCode);
if (checkKey(CONTROL) && checkKey(KeyEvent.VK_PAGE_UP)) if (checkKey(CONTROL) && checkKey(KeyEvent.VK_PAGE_UP))
changeMachineScaling(1); changeMachineScaling(1);

View File

@ -203,7 +203,7 @@ public void trace_captureCurrentImage()
{ {
// capturedImage = webcam_buildLiveImage(); // capturedImage = webcam_buildLiveImage();
if (getDisplayMachine().imageIsReady()) if (getDisplayMachine().imageIsReady())
webcam_captureCurrentImage(getDisplayMachine().getImage()); trace_captureCurrentImage(getDisplayMachine().getImage());
} }
public void trace_processLoadedImage() public void trace_processLoadedImage()