Skip to content
Snippets Groups Projects
Commit ebd3a156 authored by Amaury Vanoorenberghe's avatar Amaury Vanoorenberghe :scroll:
Browse files

FIX - palette: c'est pas un bug, c'est un choix artistique :')

parent 65090a62
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ public class Palette extends HttpServlet
out.println("<tr>");
for (int y = 0; y < 16; ++y) {
String red = Integer.toHexString(16 - (x / 2) - (y / 2) + 1);
String red = Integer.toHexString(16 - ((x + y) / 2) + 1);
String blue = Integer.toHexString(x);
String green = Integer.toHexString(y);
out.println(String.format("<td style=\"width: 1em;height:1em;background: #%s%s%s\"></td>", red, green, blue));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment