5PWH6EJMJE5C6FODNDCF45BHKI27WGKDJ5ZJXRSB2JDELPE3AZSQC M4DT5MAD3TATSVAT3MFNABHONWXOW443XD5W6DGEVVYHVITXVBDAC KHAKSWQANUZL7B3EYF6GWTDGSUR2WVZGU5BPPI6OKYIPCD3QMWAQC AAKN4XJLZ2GARZMUFYX3CJZKYHTRRZDYNTFRLMY7VPAY7K6W4N3QC THNMNMVRZQVPZTEXHIK6WGYN3QDEFPKFOVOCB5HTWCYC5BOBYQ5AC VQJBTLNEKPLH62WALLZABSTLHLEMS4SFVEVFUOXJ4EFABHISYF5QC OYNCMT7YDCHK7TFRZDVCMODYMYXRQKK3AU7EOZU7KRA76QGKI3EQC QU7JVYXAGGNN4754FJAT7HFTSFHLLIWWNIVYBMCBQJVSLTB5RNIQC DYG4O2P7D2MWG6BZT4XJ4ISBK3DII52VOD76XLDJULKUBBN4MTZAC NQA6YRMRCF7LIHPYWLC355FPCH7CYA3QKSKQHSNJHA2XHOCWZXCAC public moveViewport(viewport: Rect) {}private renderRecursion(center: Point, height: number, width: number) {if (height < width) {const newHeight = this.config.recursiveDownscale * height;const newWidth = newHeight / this.config.canvasAspectRatio;const leftCenter = [center[0] - width * this.config.recursiveOffset,center[1],];const rightCenter = [center[0] + width * this.config.recursiveOffset,center[1],];return {centers: [leftCenter, rightCenter],height: newHeight,width: newWidth,};} else {const newWidth = this.config.recursiveDownscale * width;const newHeight = newWidth / this.config.canvasAspectRatio;const topCenter = [center[0],center[1] - height * this.config.recursiveOffset,];const bottomCenter = [center[0],center[1] + height * this.config.recursiveOffset,];return {centers: [topCenter, bottomCenter],height: newHeight,width: newWidth,};}}
public moveViewport(viewport: Rect) {}
const renderRects = new RenderRects(this.app.stage, new Rect({x:0, y:0, width: this.config.canvasWidth, height: this.config.canvasHeight}))renderRects.drawFirst();// const { center, height, width } = this.drawRectangle();// const {// centers: newCenters,// height: newHeight,// width: newWidth,// } = this.renderRecursion(center, height, width);// this.drawRectangle(newCenters[0], newHeight, newWidth);// this.drawRectangle(newCenters[1], newHeight, newWidth);// let {// centers: newNewCenters,// height: newNewHeight,// width: newNewWidth,// } = this.renderRecursion(newCenters[0], newHeight, newWidth);// this.drawRectangle(newNewCenters[0], newNewHeight, newNewWidth);// this.drawRectangle(newNewCenters[1], newNewHeight, newNewWidth);// let { centers: newNewCenters2 } = this.renderRecursion(// newCenters[1],// newHeight,// newWidth// );// this.drawRectangle(newNewCenters2[0], newNewHeight, newNewWidth);// this.drawRectangle(newNewCenters2[1], newNewHeight, newNewWidth);
this.renderRects.drawFirst();
public drawRectangle(center: Point = [this.config.canvasWidth / 2, this.config.canvasHeight / 2],height = 0.95 * this.config.canvasHeight,width = height * this.config.canvasAspectRatio) {const startingHeight = height;const rectWidth = width;const graphics = new Pixi.Graphics();graphics.lineStyle(2, 0xeeeeee, 1);graphics.drawRect(center[0] - rectWidth / 2,center[1] - startingHeight / 2,rectWidth,startingHeight
public drawCircle() {this.renderRects.drawCircleAt(new Vector2(Math.random() * this.config.canvasWidth,Math.random() * this.config.canvasHeight)
this.app.stage.addChild(graphics);this.drawCircle([center[0] - rectWidth / 2,center[1] - startingHeight / 2,]);this.drawCircle([center[0] + rectWidth / 2,center[1] - startingHeight / 2,]);this.drawCircle([center[0] + rectWidth / 2,center[1] + startingHeight / 2,]);this.drawCircle([center[0] - rectWidth / 2,center[1] + startingHeight / 2,]);this.drawCircle([center[0] - rectWidth / 2,center[1] - (0 * startingHeight) / 2,]);this.drawCircle([center[0] + rectWidth / 2,center[1] - (0 * startingHeight) / 2,]);this.drawCircle([center[0] + (0 * rectWidth) / 2,center[1] - startingHeight / 2,]);this.drawCircle([center[0] + (0 * rectWidth) / 2,center[1] + startingHeight / 2,]);return { center, height, width };}public drawCircle(point: Point = [this.config.canvasWidth * Math.random(),this.config.canvasHeight * Math.random(),]) {const graphics = new Pixi.Graphics();if (Math.random() < 0.5) {graphics.lineStyle(1, 0x000000, 1);} else {graphics.lineStyle(1, 0xc0c0c0, 1);}graphics.beginFill(0xdddddd, 1);graphics.drawCircle(point[0], point[1], this.config.nodeSize);graphics.endFill();this.app.stage.addChild(graphics);
circleSize: 3.5,circleOffColor: 0x00000,circleOnColor: 0xc0c0c0,circleHoverColor: 0x00000,circleFillColor: 0xddddd,borderColor: 0xeeeeee,
circleSize: 10,circleOffColor: 0x030303,circleOnColor: 0xcecece,circleHoverColor: 0x000000,circleFillColor: 0xd3d3d3,borderColor: 0xefefef,