Package sac.model.colors
Class ClassicColor
java.lang.Object
sac.model.colors.ClassicColor
- All Implemented Interfaces:
Colorscheme
The color scheme that a classic Tetris game would use.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.paint.Color
javafx.scene.paint.Color
render
(Piece.PieceType type) Render different pieces with different color.
-
Constructor Details
-
ClassicColor
public ClassicColor()
-
-
Method Details
-
render
Description copied from interface:Colorscheme
Render different pieces with different color.- Specified by:
render
in interfaceColorscheme
- 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 interfaceColorscheme
- Returns:
- the color of the background (Tetris board)
-