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()
{
// if (pixelCentresForMachine != null && !pixelCentresForMachine.isEmpty())
// sendSawtoothPixels();
if (getDisplayMachine().pixelsCanBeExtracted() && isBoxSpecified())
{
Set<PVector> pixels = getDisplayMachine().extractNativePixelsFromArea(getBoxVector1(), getBoxVectorSize(), getGridSize(), sampleArea);
sendSawtoothPixels(pixels);
}
}
void button_mode_renderCirclePixel()
{

View File

@ -1372,7 +1372,9 @@ void keyPressed()
{
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))
changeMachineScaling(1);

View File

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