C# Класс TowerAnimator.ColorPalette

Показать файл Открыть проект

Открытые методы

Метод Описание
ColorPalette ( int squarePixelWidth, int numColumns ) : System
GetColor ( ) : Color

Gets the color of the currently hovered cell.

GetColor ( int row, int col ) : Color
GetImage ( ) : Image
SetColor ( Color c ) : void

Sets the color of the currently hovered cell.

SetColor ( int row, int col, Color c ) : void
SetHover ( int x, int y ) : void

This function assumes the canvas has not been scaled on screen, or that (x, y) has been appropriately scaled.

UnHover ( ) : void

Приватные методы

Метод Описание
GenerateCanvas ( ) : void
GenerateSwatches ( ) : void

Описание методов

ColorPalette() публичный Метод

public ColorPalette ( int squarePixelWidth, int numColumns ) : System
squarePixelWidth int
numColumns int
Результат System

GetColor() публичный Метод

Gets the color of the currently hovered cell.
public GetColor ( ) : Color
Результат Color

GetColor() публичный Метод

public GetColor ( int row, int col ) : Color
row int
col int
Результат Color

GetImage() публичный Метод

public GetImage ( ) : Image
Результат Image

SetColor() публичный Метод

Sets the color of the currently hovered cell.
public SetColor ( Color c ) : void
c Color
Результат void

SetColor() публичный Метод

public SetColor ( int row, int col, Color c ) : void
row int
col int
c Color
Результат void

SetHover() публичный Метод

This function assumes the canvas has not been scaled on screen, or that (x, y) has been appropriately scaled.
public SetHover ( int x, int y ) : void
x int Mouse location x.
y int Mouse location y.
Результат void

UnHover() публичный Метод

public UnHover ( ) : void
Результат void