Skip to content

Commit

Permalink
fix: wrong angle table for colors
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves authored Aug 21, 2023
1 parent 7d76782 commit 7fbcf66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
const colors = [
{ rgb: "#ff0000", angle: 0, name: "red" },
{ rgb: "#ffff00", angle: 60, name: "yellow" },
{ rgb: "#00ff00", angle: 0, name: "green" },
{ rgb: "#00ffff", angle: 0, name: "cyan" },
{ rgb: "#0000ff", angle: 0, name: "blue" },
{ rgb: "#00ff00", angle: 120, name: "green" },
{ rgb: "#00ffff", angle: 180, name: "cyan" },
{ rgb: "#0000ff", angle: 240, name: "blue" },
];

let properties;
Expand Down Expand Up @@ -107,6 +107,7 @@

main.onclick = changeColor;
main.ontouchend = changeColor;

});
</script>
<style>
Expand Down

0 comments on commit 7fbcf66

Please sign in to comment.