The stupid question is the question not asked | |
PerlMonks |
Re^2: GD colorAllocate not changing colourby Bod (Parson) |
on May 16, 2021 at 11:41 UTC ( [id://11132655]=note: print w/replies, xml ) | Need Help?? |
So, you bought a can of white color and a brush, but for some strange reason, the walls of the room you are standing in still show a nasty 1960s style flower decor. What has gone wrong? OK - so the handyman has been summoned and instructed to use the brush to put the paint on the wall: The wall looks much better in white than it did in the 1960's flower decor. However, much to the handyman's frustration, I've decided that for testing purposes I don't want white or black and will have grey instead. Grey makes it easy to know the black has gone without the white blending into the background: Calling the grey $white ensures that the handyman knows he has to return the grey wall back to white someday! Now that there is a nice grey wall we can look at it and check it is indeed grey: And yes, it is grey as expected :) Next we get the handyman to take the picture that was hanging on the wall and resize it to it is 600px wide. Being good with a tape measure and a saw, our handyman is able to resize the picture without altering it's aspect ratio: Despite having lots of faith in our handyman it's still a good idea to check his work occasionally... And sure enough his tape measure and sawing skills live up to expectations and he has created a perfect resized picture all ready for the newly painted grey wall. Now for the final part of the redecoration. All that is left is to hang the picture of the wall and we are done. All done but let's have a quick check again before the hammer is put away... Oh no! What's happened...it must be alchemy... As if by magic, the nice grey wall has turned into a black wall. Far better than the 1960's flower pattern but still not the lovely shade of grey that we tried so hard to use to paint the wall.
In Section
Seekers of Perl Wisdom
|
|