processing-r/Processing.R

Redirect all errors to PDE console

Closed this issue · 1 comments

The code has errors but there is nothing shown in PDE console

fillVal <- color(126)

draw <- function() {
    fill(fillVal)
    rect(25, 25, 50, 50)
}

keyPressed <- function() {
    if (key == CODED) {
        if (keyCode == UP) {
            fillVal = 255
        } else if (keyCode == DOWN) {
            fillVal = 0
        }
    } else {
        fillVal = 126
    }
}

Great! Glad you were able to track down the bug. Good console feedback will be really helpful.