I Am Making A Paint Game. I Took A Screenshot Of The Scratch Paint Editor Color Picker, Which I Am Using As The Color Picker In The Paint Game. Can Someone Please Help Me To Script The Paintbrush So That It Makes The Pen Color The Color Selected On The Color Picker?
Offline
There Is Not A Special Secret English Rule That Does Not Count Something As A Word Unless You Capitalize The First Letter. Stop Following Said Rule.
Offline
Here's a useful script from this thread...
HD123 wrote:
Here is a simple script to make an all-color color picker.
set [left_edge_x v] to [-240] set [height v] to [150] set [width v] to [150] repeat (height) pen down repeat (width) change x by [1] change pen color by ([200]/(width)) end pen up set x to (left_edge_x) change y by [-1] change pen shade by ([100]/(height)) endChange the width variable to change width, height variable to change height. Put in the x coordinate you want for the left edge of your color picker in the left_edge_x variable. Put this entire script in a 1px black dot. After the script, you should probably add a broadcast to continue the project.
Offline
videogame9 has my quote as his signature. Trust me, it was a typo. I was on my ipod and it automatically changes the word if you mess up, and it somehow changed it to death
Offline
ProgramCAT wrote:
Here's a useful script from this thread...
HD123 wrote:
Here is a simple script to make an all-color color picker.
set [left_edge_x v] to [-240] set [height v] to [150] set [width v] to [150] repeat (height) pen down repeat (width) change x by [1] change pen color by ([200]/(width)) end pen up set x to (left_edge_x) change y by [-1] change pen shade by ([100]/(height)) endChange the width variable to change width, height variable to change height. Put in the x coordinate you want for the left edge of your color picker in the left_edge_x variable. Put this entire script in a 1px black dot. After the script, you should probably add a broadcast to continue the project.
I don't understand the script... I want the scripts for so that the color picker works like the color picker in the paint editor and it sets the pen color to the color that you clicked on.
Offline
I don't think you can.
Offline
This mock paint editor by me uses it: Whizz Paint.
The color selection script + a way to have gradients can be found in this mini-project.
Offline