sketching icon indicating copy to clipboard operation
sketching copied to clipboard

Default background color not gray

Open ericcervin opened this issue 3 years ago • 5 comments

When I recreate examples from java Processing in sketching, I add (background 200) so the backgrounds match. Maybe that should be the default color for sketching?

ericcervin avatar Jan 10 '22 03:01 ericcervin

Hi Eric,

Processing has 200 has the default background and P5.js has "transparent" as the default. Although it would have been nice to have the same default as Processing, I am reluctant to change the default of Sketching.

It is however worth mentioning in the documentation of background that the default color differs from the default in Processing.

Do you think I should make a separate section with a list of known differences?

Have you noticed other default that differ from the Processing ones?

soegaard avatar Jan 10 '22 11:01 soegaard

I'll work on my own list of differences and I'll share it as I sloooooooooowly work through my examples. Right now 2 things really stand out:

  1. The default background color
  2. Sketching can't draw outside of a "draw" function? Maybe that is a good approach but it is a difference.

ericcervin avatar Jan 11 '22 04:01 ericcervin

Hi,

I didn't know about 2.

I think this can be improved. Do you happen to know where in the Processing manual it is described, what happens when draw is missing?

/Jens Axel

soegaard avatar Jan 11 '22 15:01 soegaard

i don't know where it is documented. In many of the most basic tutorials that I've worked through setup/draw are left out . This is an example: https://processing.org/examples/shapeprimitives.html

you'll see that it just draws the shapes. I've been using (no-loop) to recreate this in sketching .

I should make this its own issue?

ericcervin avatar Jan 12 '22 14:01 ericcervin

Yes. That would a good idea.

soegaard avatar Jan 12 '22 14:01 soegaard