Why does using pixelDensity(2) output "2 1" to the console every time I run a sketch?

When I use pixelDensity in a sketch, it outputs the following to the console when the sketch runs: "2 1". I don't have any print or println in my sketch, so confused why it does this. See attached screenshot. Is this just me or does everyone experience this?processing-sketch-pixelDensity

Tagged:

Answers

  • Hello @jschifano

    pixelDensity means pixels per inch, so if you write

    pixelDensity(1) the system will display 1 1
    pixelDensity(2) the system will display 2 1
    
  • Hi, this is great, but I guess what I'm saying is "why" does it feel the need to write this info to the console? It doesn't seem like may other processing methods write output to the console unless you use print or println. Seems kinda random, no?

  • Hello

    I really not sure why only a few processing methods write some information to the console, I guess some libraries include it, but because the author considers useful....

  • Ah got it. Thanks for the lowdown @laimperiestro! :-*

Sign In or Register to comment.