Skip to content

fixed random background color generation in tiles0#3

Open
snlagr wants to merge 1 commit intogames50:masterfrom
snlagr:patch-1
Open

fixed random background color generation in tiles0#3
snlagr wants to merge 1 commit intogames50:masterfrom
snlagr:patch-1

Conversation

@snlagr
Copy link

@snlagr snlagr commented Mar 19, 2021

backgroundR, backgroundG and backgroundB are multiplied by 255 twice resulting in generating (almost) black color every time.

@leesaypeng
Copy link

backgroundR, backgroundG and backgroundB are multiplied by 255 twice resulting in generating (almost) black color every time.

i think only need to divided 255 one time only because divided 2 times the value too small

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants