Discuss Scratch

nembence
Scratcher
500+ posts

Pen color blending

Changes the blend mode that the pen blocks use to draw on the pen layer.
Mockups: https://scratch.mit.edu/projects/1278155182/
set blend mode to [draw above v] :: pen // this is what it does currently
set blend mode to [draw below v] :: pen
set blend mode to [eraser v] :: pen
set blend mode to [glow v] :: pen // additive blending
set blend mode to [tint v] :: pen // multiplicative blending
Possible implementation:
// draw above
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
// draw below
gl.blendFunc(gl.ONE_MINUS_DST_ALPHA, gl.ONE);
// eraser
gl.blendFunc(gl.ZERO, gl.ONE_MINUS_SRC_ALPHA);
// glow/additive
gl.blendFuncSeparate(gl.ONE, gl.ONE, gl.ZERO, gl.ONE);
// tint/multiplicative (not perfect because it tints the pen layer but not the background)
// the shader should add (1-alpha) to the rgb color channels so that transparent things don't become black
gl.blendFuncSeparate(gl.ONE_MINUS_DST_ALPHA, gl.SRC_COLOR, gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
new_yoshi_641598
Scratcher
100+ posts

Pen color blending

support
I see a lot of potential with this
ChristianScratcher1
Scratcher
1000+ posts

Pen color blending

Support!
This seems like a fun and useful tool
nembence
Scratcher
500+ posts

Pen color blending

bump
nembence
Scratcher
500+ posts

Pen color blending

bump
nembence
Scratcher
500+ posts

Pen color blending

bump
blackcow29
Scratcher
500+ posts

Pen color blending

Support! This would be helpful for artwork and drawing projects (where the user can draw anything they want) so you could blend colors together without having to change the pen color manually.
nembence
Scratcher
500+ posts

Pen color blending

bump
nembence
Scratcher
500+ posts

Pen color blending

bump

Powered by DjangoBB