kwalkerxxi / fractalterraingeneration Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/fractalterraingeneration
Automatically exported from code.google.com/p/fractalterraingeneration
In simplex, the colors are described in a struct containing an array of 3
elements (v[0]=red, v[1]=green, v[2]=blue) and are used like that in the whole
program, except while writting in the BMP file, where the following is done:
out.put(char(newcolor.v[0]));//blue
out.put(char(newcolor.v[1]));//green
out.put(char(newcolor.v[2]));//red
In a BMP file, the blue value has to be written first, as you mentionned it in
your comment, however, you're writting the red first.
The main effect of this is that your colors array contains actually blue, green
and red values, see your waterlow value for example: (55,0,0). This is more red
than blue.
It can be fixed by replacing those 3 lines by:
out.put(char(newcolor.v[2]));//blue
out.put(char(newcolor.v[1]));//green
out.put(char(newcolor.v[0]));//red
And then the colors red and blue values must be inverted (for example, waterlow
must become (0, 0, 55).
It's actually less visible with the other colors, because their red and blue
values are always near.
Original issue reported on code.google.com by [email protected]
on 9 Aug 2013 at 3:50
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.