Color Palette Algorithm to output a grid of colors from red'ish to blue'ish
<p>As you see here <a href="http://www.rapidtables.com/web/color/RGB_Color.htm" rel="nofollow noreferrer">http://www.rapidtables.com/web/color/RGB_Color.htm</a> The colors go from red to blue and from dark to white in a algorithmic pattern. How would you code that in a basic loop? Im making this for JavaFX training!</p>

<p>Here is the basic structure I have so far with Random Colors, should be replaced with an algorithm:</p>

<pre><code>    for(int x = 0;x&lt;12;x++) {
        for(int y = 0; y&lt; 10; y++) {
            Random random = new Random();
            int r = random.nextInt(256);
            int g = random.nextInt(256);
            int b = random.nextInt(256);

            Label label = new Label();
            label.setPrefSize(30,30);
            label.setStyle("-fx-background-color: rgb(" + r + "," + g + "," + b + ")");
            colorPane.add(label, x,y);
        }
    }
</code></pre>