Skip to content

Commit

Permalink
step working
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinatzo committed Sep 12, 2024
1 parent 9074b43 commit beff040
Show file tree
Hide file tree
Showing 8 changed files with 464 additions and 9,893 deletions.
5 changes: 2 additions & 3 deletions packages/abstract-3d/src/renderers/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ export function rotationForCameraPos(view: View): Vec3 {
}
}

export function parseRgb(color: string): {readonly r: number, readonly g: number, readonly b: number} {
export function parseRgb(color: string): { readonly r: number; readonly g: number; readonly b: number } {
const parts = color.split("(")[1]?.slice(0, -1).split(",");
const rgb = {r: Number(parts?.[0] ?? 0), g: Number(parts?.[1] ?? 0), b: Number(parts?.[2] ?? 0),};
console.log("rgb", rgb)
const rgb = { r: Number(parts?.[0] ?? 0), g: Number(parts?.[1] ?? 0), b: Number(parts?.[2] ?? 0) };
return rgb;
}

Expand Down
117 changes: 0 additions & 117 deletions packages/abstract-3d/src/renderers/step/step-defintion.ts

This file was deleted.

Loading

0 comments on commit beff040

Please sign in to comment.