Commits

Rafał Selewońko committed e6f13e3

poprawka w odejmowaniu kolorów

  • Participants
  • Parent commits e505c8b

Comments (0)

Files changed (1)

File src/selershop/Plotno.java

         repaint();
     }
     
-    public void OdejmijObrazy(){
-        
-    }
-    
     private int DodajKolory(int c1, int c2){
         int c3 = c1+c2;
         if(c3>255)c3=255;
     }
     private int OdejmijKolory(int c1, int c2){
         int c3 = c1-c2;
-        if(c3>255)c3=0;
+        if(c3<0)c3=0;
         return c3;
     }