From 2293ea9044be5703793e15199e6bcf361d797a70 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Tue, 14 Mar 2017 21:05:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=BD=D1=82=D1=80=D0=BE=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B1=D1=8B=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications.txt | 2 +- Applications/3DTest/3DTest.lua | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Applications.txt b/Applications.txt index 36943545..f9900e5c 100644 --- a/Applications.txt +++ b/Applications.txt @@ -530,7 +530,7 @@ type="Application", icon="IgorTimofeev/OpenComputers/master/Applications/3DTest/Icon.pic", createShortcut="desktop", - version=1.10, + version=1.11, }, { name="MineOS/Applications/GeoScan2", diff --git a/Applications/3DTest/3DTest.lua b/Applications/3DTest/3DTest.lua index f6e568c7..9125444f 100644 --- a/Applications/3DTest/3DTest.lua +++ b/Applications/3DTest/3DTest.lua @@ -29,7 +29,7 @@ local polyCatEngine = require("PolyCatEngine/Main") -- /MineOS/Desktop/3DTest.app/3DTest.lua buffer.start() --- polyCatEngine.intro(vector.newVector3(0, 0, 0), 20) +polyCatEngine.intro(vector.newVector3(0, 0, 0), 20) local mainWindow = windows.fullScreen() local scene = polyCatEngine.newScene(0x1D1D1D) scene:addLight(polyCatEngine.newLight(vector.newVector3(0, 20, 0), 1000)) @@ -153,16 +153,16 @@ local function renderWorld() end end -setBlock(1, 1, 1, 0xFFFFFF) --- local hue, hueStep = 0, 360 / 9 --- for i = -1, 1 do --- for j = -1, 1 do --- if not (i == 0 and j == 0) then --- setBlock(i, 0, j, colorlib.HSBtoHEX(hue, 100, 100)) --- hue = hue + hueStep --- end --- end --- end +-- setBlock(1, 1, 1, 0xFFFFFF) +local hue, hueStep = 0, 360 / 9 +for i = -1, 1 do + for j = -1, 1 do + if not (i == 0 and j == 0) then + setBlock(i, 0, j, colorlib.HSBtoHEX(hue, 100, 100)) + hue = hue + hueStep + end + end +end ---------------------------------------------- Cat ----------------------------------------------