KURATOR
@matthyno
i'm matthyno/kurator i guess
0
ALLdlelibMake your own Wordle! Any number of tries, letter count, or even words!
18
0
0
0
madew/replit: a half-decent 2-dimensional rocket game
whaddup i'm me and I just made a (I don't want to call it this because it's not even close to being as good as ksp) 2d ksp1
mattexJS - 2d drawing & Co.
yeah
check out matthyno/openVS for an example program with it0
situate.js - a projectile physics engine in 2d
css is bad
code is okay
physics is good
cant wait for someone to find a engine-breaking bug :D7
2
0
0
Making math animations like 3Blue1Brown
Prerequisites
Know Python to the extent of classes and basic library usage
Know how to read docs
\--> There is quite a lot of docs and examples for Manim at their website's docs page.
Know how to use the packager and Replit in general (this should always be met, judging by how you got here)
Know LaTeX/TeX (to some extent, you can also copy and paste the code from CodeCogs, and this is optional unless you want to use math notation)
Intro
You may have thought:
How does 3b1b make their animations?
Manim.
We're going to use the community edition and 1 more library which allows repls to use LaTeX.
Create a Python repl, then go to the packages tab, so that you don't have to run pip install everytime.
Search for these 2 packages and click the plus to install: manim and manim-onlinetex.
These will take a while to install, I think there's 27 dependencies total, including SciPy which takes a bit because
it's so big.
Once you're done, move on to step 2.
Template
Create the following file with the name .replit:
Put in the file:
run="manim -ql main.py "
Replace ` with your name of choice, such as MainScene or TransformExampleScene`.
No spaces, and I generally wouldn't recommend snake_case because in Manim that's not how we do it, except for
function names inside the class.
Then, in your main.py file, put the following:
from manim import *
from manim_onlinetex import *
class (Scene):
def construct(self):
circle = Circle(radius=2, color=BLUE, fill_opacity=0.5) # make a circle with r=2, a lightish blue color, and a filled (but translucent) lightish blue inside
square = Square(sidelength=4, color=BLUE, fillopacity=0.5) # Make a square with the same side length as the diameter of the circle
label = Tex(r"Magic!").shift(UP*3) # Make fancy TeX text that says Magic!, use MathTex(r"contents") for mathematics TeX (LaTeX)
play the animation
self.play(Create(circle)) # Create the circle with a fancy technique
self.play(Transform(circle, square)) # Transform the circle into a square, magic!
self.wait(1) # Wait 1 second
self.play(Write(label)) # Say how it's magic!
self.play(FadeOut(square, circle, label)) # Fade out to black, say we're heroes, get a Emmy or something, I don't know
self.wait(1) # Wait 1 second before ending the video, then end it
Replace ` with your name of choice from the previous step, such as MainScene or TransformExampleScene` like I said earlier.
The comments in the code should explain everything.
There are a lot of preexisting animations in Manim, and self.play(AnimationHere(...Mobject[])) will play the animation of all of the Mobjects inside the animation function inside
the parentheses.
Mobjects are part of the core of Manim. It involves every... object. Polygons, LaTeX, you name it! The major thing that isn't a Mobject however
is the majority of things that act upon them, such as Write, FadeOut, Create, or Transform, aka animations.
You can create your own, but that's a bit more advanced and we won't cover that, but the Manim docs cover it well.
You now have a basic graph on coding Manim, but where is the result?
Configuration
To answer that previous question, it's easy. Click the folders inside the media folder a bunch to open them all. You should find a folder
named 480p15. That's the resolution and frames per second of the video. You should see, inside that folder, a video named .mp4, which is, you guessed it, the name of the scene. Ignore the partialmovefiles,
that's just so that big rendering and prototyping don't take as long by storing each animation in that folder.
How can I make it more than 480p15?
To make it higher than pixel-y 480p15, go back to your .replit file and change -ql to -ql, -qm, -qh, or -qk, for medium, high, and 4k quality, respectively.
What can you do with this/What's the best you can create?
The possibilities are only limited by what you want to code.
I made a video on making a very bad Pi series here and the source code for that video is here.
The code is 237 lines long, but I didn't use very many helper functions at all, and if I did, it'd be significantly shorter.
Anyways, that's about it. Make sure to check out the Manim docs link in the Prerequisites step to learn more.
Thanks for reading!
-cj
23
3
0
LD is looking in /nix/store/ijph3y907mm9z67j8xikj56fg2lbnrdg-python3-3.7.10/lib/ on my project, but I want it to look in /home/runner/abrid-main/, but
Blank Repl
Abrid
Welcome to the Abrid operating system!
What does it support?
This operating system supports initial ramdisks, PS/2 keyboards, GDT, IDT, IRQ, ISR
Blank Repl
17lwinn Hi! Great work! Are there any plans to allow file handling in the OS? like write and delete?2 years ago
17
abrid-mainThis is abrid-hos but a compile-at-runtime version, so you aren't just running a precompiled ISO. It may take the slightest bit longer, but it still works and fixes the command-not-found freezing bug and echo-messes-up-next-command bug.
589
2
17
2
0
jsnlJavaScript Perlin noise library, with a Node.js library too at @cjmatth09/nodejs-jsnl
0
0
0
1
have fun, it's not much but i'm still gonna post it :)
Controls: WASD + mouse, basically minecraft, switch blocks with "Open Controls" -> item dropdow
HTML, CSS, JS
ANDREWVOSS The camera is so janky that it makes the game unplayable, but good job on everything else2 years ago
26
abrid-hosMOVED TO abrid-main/, where I can actually use Nix.
This repl is no longer in development, and has been moved to abrid-main
1.2K
39
26
This is an OS that I have been working on with the original source from GitHub at HOS-x86, and I have been modifying and making it better.
Has:
Basi
Bash
I wanted to host my OSdev project on here, but I can't get qemu running.
matthyno It works now. Took a bit, but I did it, with some help from the VolantOS source.2 years ago
Hello, and welcome to this tutorial! We are going to be calculating Pi (3.1415...) using the Nilakantha series.
The series is quite basic.
First, you
Python
it's so simple, but it works after days
(made in php)
PHP Web Server
QWT.js is a quantum computing simulator.
That's it.
You can also add gates with the provided example extension!
HTML, CSS, JS
LinearJS was originally intended to be a wiki language like MediaWiki, but then I realized it had so much more potential than a simple wiki language.
HTML, CSS, JS
RixTheTyrunt Wondering how to make that print once?
if (poweredShown == false) {
console.log("%cINFO: Powered by Linearwiki!", "background: cyan; color: black; font-weight: bold;")
poweredShown = true
}
And then in the start, just define poweredShown as false!1 year ago