Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
type color() with a string
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Dec 28, 2023
1 parent ecdef88 commit d5be338
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export interface KaboomCtx {
color(r: number, g: number, b: number): ColorComp,
color(c: Color): ColorComp,
color(rgb: [number, number, number]): ColorComp,
color(c: string): ColorComp,
color(): ColorComp,
/**
* Sets opacity (0.0 - 1.0).
Expand Down Expand Up @@ -509,7 +510,7 @@ export interface KaboomCtx {
* player.hurt(1)
* bad.hurt(1)
* })
*
*
* player.onCollide("apple", () => {
* player.heal(1)
* })
Expand Down Expand Up @@ -4670,7 +4671,7 @@ export interface RectComp extends Comp {
renderArea(): Rect,
}

export type PolygonCompOpt = Omit<DrawPolygonOpt,"pts">
export type PolygonCompOpt = Omit<DrawPolygonOpt, "pts">

/**
* Component to draw a polygon.
Expand Down

0 comments on commit d5be338

Please sign in to comment.