Messing with aiju's NES emulator.
I want to redo the keyboard scheme for the emulator, but first, gotta learn how Plan 9 apps handles keyboard controls.
Seems easy enough.
Listening to Lustre
doing computer graphics
Oh my god.
I've always thought 3D was this complicated thing, I would include these big libraries and frameworks to make 3d stuff, but in reality, all I needed was these 2 little functions?! Are you kidding me.
Let's add some more primitives.
This is so much fun.
Okay, let's call them pyramids.
Polygons, pyramids, frustums, prisms.
GAH, figured it out.
I realized this morning that I had no idea how to draw a simple color wheel. I wanna try to do one from scratch today without checking how it's supposed to be done.
Oh my goodness, today is going to be a lot of fun, I just know it.
Today I learnt about chromatic circles, it seems easy at first, but it's fucking not.
Made a simple color picker thing, implementing complementary colors now.
Still at it.. Trying to optimize a few things.
Rewrote the #plan9 clock, I wanted to simplify the redraw so it doesn't clear the whole screen.
I've been thinking, I should make a little style guideline function to draw an overlay over the various things I'm working on to make sure they follow the same padding, ratios, etc.
Next up, Nasu.
Screw this, I don't need internet connectivity to enjoy plan9..
Could be the beginning of something..
I need to find a better fixed width font now.
That's a better font.
Realy liking Sigrid's #plan9 font selector.
we've got a winner.
@neauoire nice! Drawing everything to an image before flushing to the screen. Smart!
@neauoire might be able to save some cycles by allocating everything once, keeping the image reference between redraws and just drawing to it as if it was blank.
@neauoire not that it matters for this case but allocation is expensive.
@peregrine But I don't think I can change the size of the allocation, when the size of the window changes I would have to reallocate with a new size
@neauoire yea that would be when you would need to realloc. But since it is single threaded it should be safe to do so.
@peregrine I'll give it a try :)
@neauoire you do you I'm just mind dumping stuff. If it works its good. Pre-allocating is a per-optimization
@neauoire Excuse me for being completely off-topic (your apps for Plan 9 are awesome though), but do you happen to have a link to the wallpaper image?
@dvicente They're from a National Geographic post about retro cats, I don't have the link anymore, maybe you can find it :)
@neauoire those were more than enough keywords to find them. https://www.nationalgeographic.com/photography/proof/2018/05/cats-photography-vintage-animals/
@dvicente ah! I'm glad :D
@neauoire why did you replace sprint with snprint? Was it an optimization to use a fixed size buffer, or just for memory protection?
@cone memory protection
@neauoire For some reason in every plan9 screenshot the first thing I read is the code you write to take the screenshot. Maybe you need a screenshot utility bound to a menu, next. :)
@peregrine I should.. I sometimes take the time to sleep 3; hide the window, but usually not.
@neauoire I really enjoy your adventures in plan9. Makes me want to get into it too.
@neauoire keep in mind when you read (up to) 30 bytes into a 30 byte array, that it leaves no room for a NULL terminator :)
@neutral oh! Good point, thanks :) Will fix.
@neauoire where's that wallpaper from?
@awalvie it's from a movie by the director of Valerie and Week of Wonders I think, I can't remember the name, I'll try to remember. It's a good movie..
@awalvie No wait, I think it's the same directory as On A Silver Globe, different guy..
@neauoire lots of names I've never heard of! New things are fun!
@neauoire something i've always wondered: how do you deal with only seeing 10 lines of text at a time when coding? or are you just resizing your editor for aesthetic purposes in screenshots?
@hierarchon I had a second acme window up on top left, but I used it to type the screenshot command, and people said it was distracting to see unrelated code on my screen, so now i sleep 5, and hide the unrelated windows.. The acme window at the bottom left only had some scene geometry stuff.
@hierarchon When I scroll up this thread, I think every single screenshot shows acme taking the full height no? Do you remember another screenshot?
@neauoire ... i must be misremembering or something, because yeah, all the other screenshots show it at the full height.
@neauoire you are writing all that on a Raspberry Pi?
@neauoire hello i'm nicola and Terminus is my Lord
@neauoire are you telling me you haven’t made your own font already?
@flip I made a few fonts, but never made a pixel font for coding yet
@neauoire well it’s probably time then, right?
@flip not 100% sure how to make one for plan9 to be honest, I'll have to look into that.
@neauoire lol Russian phase is so funny ^_^
@neauoire I kind of like “fixed”, it's my choice at the moment, but sadly the zero and capital-o glyphs (0O) are too similar and easily mixed it has a few other shortcomings, too. At some point I would like to look into converting the UW Ttyp0 font to Plan 9's format 🤔
@aperezdc oh wow that looks great! It's a bit thin tho, I like the bolder ones I think
@neauoire yes, I would go for the bold variant.
The thin regular (thin) variant could be an useful option at small sizes for small screens. The same goes for Terminus.
@neauoire you should make a git repo with your plan9 scripts and utilities :}
@royniang That's exactly what I'm doing now ^__^
Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.