Compare commits

..

No commits in common. "9b84c424017bc1e816fb44889dcdfd265b9a51df" and "9ff9afed38ae5ce037f8ea3d0db450054fff6a38" have entirely different histories.

2 changed files with 7 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
examples/
axamples
.directory .directory
/settings/settings.private.xml /settings/settings.private.xml
*.vcsettings *.vcsettings

View File

@ -242,10 +242,12 @@ function focusTest(x, y) {
function cutSpeedTest(contentXOffset, contentYOffset, powersToTest, speedsToTest) { function cutSpeedTest(contentXOffset, contentYOffset, powersToTest, speedsToTest) {
var fontWidth = 2; var fontWidth = 2;
contentYOffset += 20;
var firstPowerRowOffset = fontWidth * 3 + squareSpacing; var firstPowerRowOffset = fontWidth * 3 + squareSpacing;
// TODO: improve // TODO: improve
var speedsText = "speed"; var speedsText = "speeds";
for (var i = 0; i < speedsText.length; ++i) { for (var i = 0; i < speedsText.length; ++i) {
var currentCharYOffset = i * (fontWidth * 3) + firstPowerRowOffset; var currentCharYOffset = i * (fontWidth * 3) + firstPowerRowOffset;
segment7write(contentXOffset, contentYOffset + currentCharYOffset, fontWidth, speedsText.slice(i, i+1)); segment7write(contentXOffset, contentYOffset + currentCharYOffset, fontWidth, speedsText.slice(i, i+1));
@ -257,7 +259,7 @@ function cutSpeedTest(contentXOffset, contentYOffset, powersToTest, speedsToTest
// TODO: improve // TODO: improve
// this text will be aligned centrally above the X axis // this text will be aligned centrally above the X axis
var firstColumnOffset = 3 * fontWidth * 1.5; var firstColumnOffset = 3 * fontWidth * 1.5;
var powersText = "power"; var powersText = "powers";
segment7write(contentXOffset + firstColumnOffset + powersToTest.length / 2 * (squareSize + squareSpacing - 0) - (powersText.length / 2) * fontWidth * 1.5, 15, fontWidth, powersText); segment7write(contentXOffset + firstColumnOffset + powersToTest.length / 2 * (squareSize + squareSpacing - 0) - (powersText.length / 2) * fontWidth * 1.5, 15, fontWidth, powersText);
// write column texts in the first ever row // write column texts in the first ever row
@ -306,7 +308,7 @@ function cutSpeedTest(contentXOffset, contentYOffset, powersToTest, speedsToTest
} }
// could render at (0, 0), but then again, why not add some spacing right away? // could render at (0, 0), but then again, why not add some spacing right away?
var xOffset = 5; var xOffset = 25;
var yOffset = 5; var yOffset = 5;
if (cutOutline) { if (cutOutline) {
@ -344,6 +346,4 @@ if (!promptUserForMaxMinIntervals) {
} }
} }
yOffset += 20;
cutSpeedTest(xOffset, yOffset, powersToTest, speedsToTest); cutSpeedTest(xOffset, yOffset, powersToTest, speedsToTest);