Skip to content
Snippets Groups Projects
Commit 9df5bb85 authored by LABOUREL Arnaud's avatar LABOUREL Arnaud
Browse files

Changement code ByteGrayColor

parent 6fcbfd29
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ public class ByteGrayColor implements GrayColor { ...@@ -35,7 +35,7 @@ public class ByteGrayColor implements GrayColor {
@Override @Override
public Color getColor(){ public Color getColor(){
double component = grayLevel / (double) MAXIMUM_GRAY_LEVEL; double component = getLuminosity();
return new Color(component, component, component, OPACITY); return new Color(component, component, component, OPACITY);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment