Skip to main content

Function: colorUpdates()

Call Signature​

colorUpdates(sport, primary, secondary?): Paint<BasketballColorKey>

Defined in: packages/sdvplot/src/surfaces.ts:148

Port of _surface.color_updates: the team colours a sport's surface takes, keyed by sporty colour key. Sports without a team painting (baseball, softball, soccer and the team-less surfaces) take none, as in sdvplotR.

Parameters​

sport​

"basketball"

primary​

string

secondary?​

string

Returns​

Paint<BasketballColorKey>

Call Signature​

colorUpdates(sport, primary, secondary?): Paint<FootballColorKey>

Defined in: packages/sdvplot/src/surfaces.ts:153

Port of _surface.color_updates: the team colours a sport's surface takes, keyed by sporty colour key. Sports without a team painting (baseball, softball, soccer and the team-less surfaces) take none, as in sdvplotR.

Parameters​

sport​

"football"

primary​

string

secondary?​

string

Returns​

Paint<FootballColorKey>

Call Signature​

colorUpdates(sport, primary, secondary?): Paint<HockeyColorKey>

Defined in: packages/sdvplot/src/surfaces.ts:154

Port of _surface.color_updates: the team colours a sport's surface takes, keyed by sporty colour key. Sports without a team painting (baseball, softball, soccer and the team-less surfaces) take none, as in sdvplotR.

Parameters​

sport​

"hockey"

primary​

string

secondary?​

string

Returns​

Paint<HockeyColorKey>

Call Signature​

colorUpdates(sport, primary, secondary?): Record<string, string>

Defined in: packages/sdvplot/src/surfaces.ts:155

Port of _surface.color_updates: the team colours a sport's surface takes, keyed by sporty colour key. Sports without a team painting (baseball, softball, soccer and the team-less surfaces) take none, as in sdvplotR.

Parameters​

sport​

Sport

primary​

string

secondary?​

string

Returns​

Record<string, string>