Class Star

    • Constructor Summary

      Constructors 
      Constructor Description
      Star​(int w, int h)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void animate()
      Animate the object - Cause next step of animation
      private java.awt.Polygon createPolygon()  
      private static int createRadius()  
      private void createRadiuses()  
      (package private) static double interpol​(double origSize, double currentSize, double from, double to)
      Interpolation is root ratio is r= (currentSize / origSize) then value to-from is interpolated from to to from according to ratio
      private void interpolateColors​(int is, int max)  
      void paint​(java.awt.Graphics g)
      Paint the object
      void setExtend​(int w, int h)
      Set the extend when window size changed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait