Skip to content

Commit

Permalink
Brushing up
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishisherewithhh committed Apr 15, 2024
1 parent 795a8b1 commit e4ee11a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@ public boolean mouseClicked(double mouseX, double mouseY, int button) {
if (!display) {
return false;
}

float[] hsv1 = new float[3];
Color.RGBtoHSB(initialColor.getRed(), initialColor.getGreen(), initialColor.getBlue(), hsv1);

this.gradientSlider.setHue(hsv1[0]);
this.gradientBox.setHue(hsv1[0]);
this.gradientBox.setSaturation(hsv1[1]);
this.gradientBox.setValue(hsv1[2]);

if (colorPickerButton.onClick(mouseX, mouseY, button)) {
return true;
} else if (gradientSlider.isMouseOver(mouseX, mouseY)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void createMenu() {
menu.addOption(new ColorOption("TextColor", menu, () -> this.textColor, value -> this.textColor = value));
menu.addOption(new DoubleOption("RainbowSpeed", 1, 4, 1.0f, () -> (double) this.rainbowSpeed, value -> this.rainbowSpeed = value.intValue(),menu));

/* TEST */
/* TEST
AtomicReference<Enum> enums = new AtomicReference<>(Enum.Enum1);
AtomicReference<String> option = new AtomicReference<>("Enum1");
List<String> options = Arrays.asList("List1", "List2", "List3");
Expand All @@ -90,9 +90,7 @@ public void createMenu() {
subMenuOption.getSubMenu().addOption(new BooleanOption("Shadows3", () -> this.shadow, value -> this.shadow = value));
subMenuOption.getSubMenu().addOption(new BooleanOption("Shadows4", () -> this.shadow, value -> this.shadow = value));
menu.addOption(subMenuOption);
}
public void printStuff(){
System.out.println("Runnable works");
*/
}

@Override
Expand Down

0 comments on commit e4ee11a

Please sign in to comment.