soegaard / sketching

A Racket library for creative drawings and animations. Inspired by Processing.
111 stars 10 forks source link

Default background color not gray #37

Open ericcervin opened 2 years ago

ericcervin commented 2 years ago

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?

soegaard commented 2 years ago

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?

ericcervin commented 2 years ago

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.

soegaard commented 2 years ago

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

ericcervin commented 2 years ago

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?

soegaard commented 2 years ago

Yes. That would a good idea.