Discuss Scratch
- Discussion Forums
- » Suggestions
- » Pen color blending
- 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/
Mockups: https://scratch.mit.edu/projects/1278155182/
set blend mode to [draw above v] :: pen // this is what it does currentlyPossible implementation:
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
// 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);
- ChristianScratcher1
-
Scratcher
1000+ posts
Pen color blending
Support!
This seems like a fun and useful tool
This seems like a fun and useful tool
- 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.
- Discussion Forums
- » Suggestions
-
» Pen color blending