K2KPaint ● SmileBASIC Source

Register
Creep into the Halloween / Horror Programming Contest (Deadline Extended)

K2KPaint

Submitted
Updated
Author
8 Comment(s) MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies I wonder if this could be merged with this http://smilebasicsource.com/page?pid=550 ColeslawProductions I'm considering restarting the DEFY Paint project now, with the DEFY 2.0 project. Warrior Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies Seems like a nice update. That would be useful :D Autz64 Touhou Project Is Awesome! I love Touhou Project! Express Yourself Avatar Taboo I didn't change my avatar for 180 days Website Deep Sleep Hidden Website The drawings she made are amazing, and all on this tool. MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies How did you manage opacity? Or rather, color blending? niconii Video Games I like to play video games! Hobbies Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Drawing I like to draw! Hobbies Color blending is pretty simple, using linear interpolation, or "lerp" for short. If you want 80% of one color and 20% of another, for each individual RGB component, you'd simply do the following: `R=0.8*R0 + 0.2*R1` For alpha blending, where 0% alpha should make it the first color and 100% alpha should make it the second color, the formula becomes: `R=(1-A)*R0 + A*R1` And to extend that to alpha having a range of 0 to 255, rather than 0% to 100%: `R=(1-A/255)*R0 + A/255*R1` You can see this used in my own anti-aliased line library. Simeon Scholar Received for knowing a great deal about programming topics Achievements Amazing Page Hidden Achievements Drawing I like to draw! Hobbies I love this! It's very obvious that a lot of work has been put into this It's a really powerful tool! brennfett I know this from before. Miiverse i guess. Awesome tool