Skip to content
    Keegan-PP

    Keegan Carey

    @Keegan-PP
    Keegan-PP
    Keegan-PP
    published a Repl
    1 year ago
    0
    3D Cube Renderer
    3D Cube RendererUse the Object class to create, manipulate, and render cubes! Create a new cube with--- Object cubeName = new Object(); Manipulate it With--- cubeName.translate(xTrans, yTrans, zTrans); (0, 0, 0) is center of screen cubeName.scale(scale); (scale is multiplicative) cubeName.rotate(xAxis, yAxis, zAxis); (degrees around axis) Apppend Cube to Display--- (re append cubes every frame where a change is made) display.clear(); //clears display to prepare for drawing new frame displayName.append(cubeName.getDisplay()); //appends the cube to the display displayName.draw(); //draws entire display (do this after appending)
    Keegan-PP
    Keegan-PP
    published a Repl
    1 year ago
    0
    Rule 86
    Rule 86I made this replit to fulfill rule 86 of the Internet. You can also render your own videos by downloading them to the project files and running the render command on startup. (I made this in like 3 days so don't expect it to be super optimized)
    Keegan-PP
    Keegan-PP
    published a Repl
    1 year ago
    3
    3D Console Cube Java
    3D Console Cube JavaUmm it makes a 3D Cube in the java console. Have fun with the numbers, it can technically be rescaled to any size. (if you get an array out of bounds that is negative, then you need to increase o (which is the Origin)) (if you get an array out of bounds that is positive, you need to increase the resize variable) Setting axis to 'p' will make the cube into a rotating plane //my code is 100% definitely not optimized, I only recently started Java// (basically don't look at my code as an example of how to write your own) If you have any ways to improve it that would be cool!
    Copyright © 2024 Replit, Inc. All rights reserved.
    • twitter
    • tiktok
    • instagram
    • facebook

    Replit

    Programming languages

    • Python
    • JavaScript
    • TypeScript
    • Node.js
    • Nix
    • HTML, CSS, JS
    • C++
    • Golang