From 03d98d867495286ac445d8a88363fe332cb74fd1 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 19 Oct 2020 19:41:35 +0200 Subject: [PATCH] drawPrint --- Animation.js | 14 +++++++------- Frame.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Animation.js b/Animation.js index e2358eecc..de3198ba7 100644 --- a/Animation.js +++ b/Animation.js @@ -116,23 +116,23 @@ function newAnimation() { for (const [key, timeConsumed] of performanceMap.entries()) { row++ let labelToPrint = key + ' ' + timeConsumed.toFixed(4) - printLabel(labelToPrint, 10, 100 + row * 30, 1, 20, UI_COLOR.RED) + UI.projects.superalgos.utilities.drawPrint.printLabel(labelToPrint, 10, 100 + row * 30, 1, 20, UI_COLOR.RED) let percentage = timeConsumed * 100 / totalTimeConsumed labelToPrint = key + ' ' + percentage.toFixed(1) + '%' - printLabel(labelToPrint, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) + UI.projects.superalgos.utilities.drawPrint.printLabel(labelToPrint, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) } /* Other Variables */ row++ - printLabel(DEBUG.variable1, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) + UI.projects.superalgos.utilities.drawPrint.printLabel(DEBUG.variable1, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) row++ - printLabel(DEBUG.variable2, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) + UI.projects.superalgos.utilities.drawPrint.printLabel(DEBUG.variable2, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) row++ - printLabel(DEBUG.variable3, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) + UI.projects.superalgos.utilities.drawPrint.printLabel(DEBUG.variable3, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) row++ - printLabel(DEBUG.variable4, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) + UI.projects.superalgos.utilities.drawPrint.printLabel(DEBUG.variable4, 300, 100 + row * 30, 1, 20, UI_COLOR.RED) row++ - printLabel('Animation Frame Per Seconds: ' + ANIMATION_FRAME_PER_SECONDS, 300, 100 + row * 30, 1, 20, UI_COLOR.TITANIUM_YELLOW) + UI.projects.superalgos.utilities.drawPrint.printLabel('Animation Frame Per Seconds: ' + ANIMATION_FRAME_PER_SECONDS, 300, 100 + row * 30, 1, 20, UI_COLOR.TITANIUM_YELLOW) } /* Video Recording */ diff --git a/Frame.js b/Frame.js index 183539d87..5176f9927 100644 --- a/Frame.js +++ b/Frame.js @@ -290,7 +290,7 @@ function newFrame() { fitFunction: fitFunction } - roundedCornersBackground(params) + UI.projects.superalgos.utilities.drawPrint.roundedCornersBackground(params) titleBarPoint1 = { x: 0,