2025-12-19 15:36:57 +01:00
|
|
|
package fr.iutfbleau.sae;
|
|
|
|
|
|
2025-12-20 11:54:06 +01:00
|
|
|
public class Pixel{
|
|
|
|
|
private int r;
|
|
|
|
|
private int g;
|
|
|
|
|
private int b;
|
|
|
|
|
|
|
|
|
|
//à completer
|
|
|
|
|
public Pixel(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getB() {
|
|
|
|
|
return b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getG() {
|
|
|
|
|
return g;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getR() {
|
|
|
|
|
return r;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setR(int r) {
|
|
|
|
|
this.r = r;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setB(int b) {
|
|
|
|
|
this.b = b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setG(int g) {
|
|
|
|
|
this.g = g;
|
|
|
|
|
}
|
2025-12-19 15:36:57 +01:00
|
|
|
}
|