fin de mon sprint

This commit is contained in:
youness
2025-12-21 14:28:37 +01:00
parent 3ff4f83da4
commit e77c7335fa
3 changed files with 16 additions and 6 deletions
+4 -2
View File
@@ -6,8 +6,10 @@ public class Pixel{
private int b;
//à completer
public Pixel(){
public Pixel(int red, int green, int blue){
this.r=red;
this.g=green;
this.b=blue;
}
public int getB() {
+9 -1
View File
@@ -4,7 +4,15 @@ public class RGBImage {
private int width;
private int height;
private Pixel [] pixels
private Pixel [] pixels;
public RGBImage (int lar, int haut){
this.width=lar;
this.height=haut;
int[][] matrice = new int[this.width][this.height];
}
public int getWidth() {
return width;