mirror of
https://github.com/euphy/polargraphcontroller
synced 2025-01-09 19:55:16 +01:00
Some sw
awtooth stuff.
This commit is contained in:
parent
65a9c9afc1
commit
b09c22123e
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user