Class HighContrastColor

java.lang.Object
sac.model.colors.HighContrastColor
All Implemented Interfaces:
Colorscheme

public class HighContrastColor extends Object implements Colorscheme
A color scheme with high contrast.
  • Constructor Details

    • HighContrastColor

      public HighContrastColor()
  • Method Details

    • render

      public javafx.scene.paint.Color render(Piece.PieceType type)
      Description copied from interface: Colorscheme
      Render different pieces with different color.
      Specified by:
      render in interface Colorscheme
      Parameters:
      type - - the type of piece to be rendered
      Returns:
      the color of current piece
    • backgroundColor

      public javafx.scene.paint.Color backgroundColor()
      Specified by:
      backgroundColor in interface Colorscheme
      Returns:
      the color of the background (Tetris board)