Update to use new sdf-2d API
This commit is contained in:
parent
41ea5d7db9
commit
f0a9c1df68
1 changed files with 38 additions and 41 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { Circle, CircleLight, compile, Renderer } from 'sdf-2d';
|
||||
import { CircleFactory, CircleLight, compile, Renderer, rgb, rgb255 } from 'sdf-2d';
|
||||
import { prettyPrint } from '../../helper/pretty-print';
|
||||
import { rgb } from '../../helper/rgb';
|
||||
import { rgb255 } from '../../helper/rgb255';
|
||||
import { Scene } from '../scene';
|
||||
import { Blob } from './blob';
|
||||
|
||||
const Circle = CircleFactory(rgb255(119, 143, 120));
|
||||
|
||||
export class BlobScene implements Scene {
|
||||
private renderer: Renderer;
|
||||
private canvas: HTMLCanvasElement;
|
||||
|
|
|
|||
Loading…
Reference in a new issue