Interface Colorscheme

All Known Implementing Classes:
ClassicColor, HighContrastColor, SplatoonColor

public interface Colorscheme
Define a color scheme.
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.scene.paint.Color
     
    javafx.scene.paint.Color
    Render different pieces with different color.
  • Method Details

    • render

      javafx.scene.paint.Color render(Piece.PieceType type)
      Render different pieces with different color.
      Parameters:
      type - - the type of piece to be rendered
      Returns:
      the color of current piece
    • backgroundColor

      javafx.scene.paint.Color backgroundColor()
      Returns:
      the color of the background (Tetris board)