Simple Triangle (Lua)
Change to C++ sample
scene = Scene() triangle = Polygon(scene) triangle:addVertex(0, -100) triangle:addVertex(-50, 50) triangle:addVertex(Vector3(50, 50,0)) triangle.position = Vector3(300,300,0) triangle:setColor(0.6, 0.2, 0.6, 1) Engine.setCanvasSize(1000,480) Engine.setScene(scene)
Copyright © 2024, Supernova Engine
This is an open source project Source code is licensed by MIT License Images, logos, text and website are licensed by CC BY 3.0