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

FIX - Ajout d'un bug dans Palette (mais maintenant le dégradé est arc-en-ciel)

parent 04c2fe5c
Branches
No related tags found
No related merge requests found
......@@ -21,9 +21,10 @@ 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 blue = Integer.toHexString(x);
String green = Integer.toHexString(y);
out.println(String.format("<td style=\"width: 1em;height:1em;background: #0%s%s\"></td>", green, blue));
out.println(String.format("<td style=\"width: 1em;height:1em;background: #%s%s%s\"></td>", red, green, blue));
}
out.println("</tr></center>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment