Package sac.model.colors
Class SplatoonColor
java.lang.Object
sac.model.colors.SplatoonColor
- All Implemented Interfaces:
Colorscheme
A color scheme inspired by Splatoon 3.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.paint.Colorjavafx.scene.paint.Colorrender(Piece.PieceType type) Render different pieces with different color.
-
Constructor Details
-
SplatoonColor
public SplatoonColor()
-
-
Method Details
-
render
Description copied from interface:ColorschemeRender different pieces with different color.- Specified by:
renderin 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:
backgroundColorin interfaceColorscheme- Returns:
- the color of the background (Tetris board)
-