Project

General

Profile

« Previous | Next » 

Revision 9c06394a

Added by Leszek Koltunski almost 3 years ago

Standarize drawing stickers of a twisty puzzle. From now on, there's no 'sticker drawing' code in the individual classes, only some constants.

View differences:

src/main/java/org/distorted/objects/TwistySquare.java
274 274
    return new float[][] { {-0.5f,+0.5f}, {0.0f} };
275 275
    }
276 276

  
277
///////////////////////////////////////////////////////////////////////////////////////////////////
278

  
279
  int getColor(int face)
280
    {
281
    return FACE_COLORS[face];
282
    }
283

  
277 284
///////////////////////////////////////////////////////////////////////////////////////////////////
278 285
// PUBLIC API
279 286

  

Also available in: Unified diff