Discuss Scratch

ihgfedcba
Scratcher
100+ posts

Fast Color Replacement (average global support: 87.5%)

In projects like https://scratch.mit.edu/projects/296724684/ , there are a lot of costumes where a single color theme is used. It is often desired to have different color themes, so that it's possible to render text in a different theme, and also have different colors for each character. The visual effects don't provide enough customization, for example it isn't possible to turn a yellow/black costume into a white/black costume with effects. The pen in the other hand would be way too slow considering how much text there can be.

There are 2 forms of FCR, either of which could potentially become precursors to a new feature in Scratch:

Form 1:

FCR [#FFFF00] to [#FFFFFF] :: grey

The form above takes any pixels of a particular color and changes them to another color, possibly with hardware acceleration. It's possible to have multiple FCR instructions in effect.

Form 2:

FCR R: ()R+()G+()B+(), G: ()R+()G+()B+(), B: ()R+()G+()B+() :: grey

It replaces red, green and blue channels with mathematical expressions based on red, green and blue.

No color change:

FCR R: (1)R+(0)G+(0)B+(0), G: (0)R+(1)G+(0)B+(0), B: (0)R+(0)G+(1)B+(0) :: grey

Inverse colors:

FCR R: (-1)R+(0)G+(0)B+(1), G: (0)R+(-1)G+(0)B+(1), B: (0)R+(0)G+(-1)B+(1) :: grey

Grayscale:

FCR R: (0.299)R+(0.587)G+(0.114)B+(0), G: (0.299)R+(0.587)G+(0.114)B+(0), B: (0.299)R+(0.587)G+(0.114)B+(0) :: grey

Any FCR block of this form would override the previous FCR of this form, working similarly to the effects.

Last edited by ihgfedcba (April 18, 2019 15:19:54)

ihgfedcba
Scratcher
100+ posts

Fast Color Replacement (average global support: 87.5%)

Bump.

Supporters (3):

ihgfedcba
-Multinia-
girlsruless (as an extension)

Semi-supporters (1):

openPoll (as an extension)

No-supporters (0):


Rejecters (0):


No rating (3):

Jonathan50
NitroCipher
Flipped_

Scoring rules (add to both numerator and denominator for each instance):

Supporters: 1/1
Semi-supporters: 0.5/1
No-supporters: 0/1
Rejecters: -Infinity/1
No rating: 0/0

Total result for this suggestion: 3.5/4 (87.5% support)

Last edited by ihgfedcba (April 18, 2019 15:19:20)

ihgfedcba
Scratcher
100+ posts

Fast Color Replacement (average global support: 87.5%)

Support. This can be very useful with a lot of costumes and when color effects don't provide enough customization, such as in https://scratch.mit.edu/projects/296724684/ .
Jonathan50
Scratcher
1000+ posts

Fast Color Replacement (average global support: 87.5%)

This would probably belong in an extension. Also, “FCR” is an undescriptive name. Perhaps it could be called something like “replace colors” or “quickly replace colors”?
ihgfedcba
Scratcher
100+ posts

Fast Color Replacement (average global support: 87.5%)

Jonathan50 wrote:

This would probably belong in an extension. Also, “FCR” is an undescriptive name. Perhaps it could be called something like “replace colors” or “quickly replace colors”?

"There are 2 forms of FCR, either of which could potentially become precursors to a new feature in Scratch:"
-Multinia-
Scratcher
35 posts

Fast Color Replacement (average global support: 87.5%)

It looks complicated for newer Scratchers, so it should probably be in an extenstion. But, for people who know what they're doing, this could be extremely useful. Support.

insert epic signature here
NitroCipher
Scratcher
500+ posts

Fast Color Replacement (average global support: 87.5%)

Here is some less confusing block syntax:

Replace [#0fBD8C] in sprite with [#5CB1D6] ::#4b4a60

Anyways, I like it! It would fit well with how you can use the color pickers on sprites for the pen tool

Last edited by NitroCipher (April 2, 2019 14:17:41)


I hope my post helped you in some way! Post count: 500+

Current project: [s3Blocks: scratchblocks rewritten for Scratch 3.0] ::#4b4a60 //https://scratch.mit.edu/discuss/topic/290031/ Basically done!
This is my signature identifier “aWFtbml0cm9jaXBoZXI=”
ihgfedcba
Scratcher
100+ posts

Fast Color Replacement (average global support: 87.5%)

NitroCipher wrote:

Here is some less confusing block syntax:

Replace [#0fBD8C] in sprite with [#5CB1D6] ::#4b4a60

Anyways, I like it! It would fit well with how you can use the color pickers on sprites for the pen tool
Note that it is two separate FCR suggestions in one topic. One is a color replacement, and the other is a RGB transformation.
girlsruless
Scratcher
1000+ posts

Fast Color Replacement (average global support: 87.5%)

support for this being an extension.

ROBLOX, Minecraft, Pokémon, AJ, Miraculous, Warrior cats, HTTYD, and CW fan(and obviosly a girl), girlsruless.





openPoll
Scratcher
1000+ posts

Fast Color Replacement (average global support: 87.5%)

Semi-support for it being an extension, because the blocks are much-needed and are wanted by many Scratchers, but the block's jobs aren't clear and many New Scratchers (and some Scratchers!) Would find the.function of the block very confusing
If that was changed then full support

Last edited by openPoll (April 10, 2019 09:51:20)















EVIL KUMQUAT PROTECTION BOX
((((((((((((((((_________________________________KUMQUAT PROTECTOR_________________________________::#000000)::#111111)::#222222)::#333333)::#444444)::#555555)::#666666)::#777777)::#888888)::#999999)::#aaaaaa)::#bbbbbb)::#cccccc)::#dddddd)::#eeeeee)::#ffffff)
































'M

Powered by DjangoBB

Standard | Mobile