Package sac.model.colors
Interface Colorscheme
- All Known Implementing Classes:
ClassicColor
,HighContrastColor
,SplatoonColor
public interface Colorscheme
Define a color scheme.
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.paint.Color
javafx.scene.paint.Color
render
(Piece.PieceType type) Render different pieces with different color.
-
Method Details
-
render
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)
-