Project

General

Profile

« Previous | Next » 

Revision 9ce78850

Added by Leszek Koltunski almost 3 years ago

Generalize FactorySticker - make it possible to draw stickers whose sides are curved.
Convert the Ivy to use this new functionality.

View differences:

src/main/java/org/distorted/objects/TwistyMegaminx.java
555 555
      }
556 556

  
557 557
    FactorySticker factory = FactorySticker.getInstance();
558
    factory.drawRoundedPolygon(canvas, paint, left, top, STICKERS[index], S, FACE_COLORS[face%COLORS], R);
558
    factory.drawRoundedPolygon(canvas, paint, left, top, STICKERS[index], null, S, FACE_COLORS[face%COLORS], R);
559 559
    }
560 560

  
561 561
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff