PHPnews.io

Overview for 'remysharp'

A px is not a px [blog]

Written by Remy Sharp / Original link on Jul. 15, 2020

Recently I was trying to extract some glyphs from some various fonts and in doing so I had a fundamental assumption challenged and dispelled.A px in terms of fonts, is not a pixel. Or certainly not in the way I was using them.For as long as I can remember I've used px for my CSS fonts. I tried with…


Index Bitmaps [til/computing]

Written by Remy Sharp / Original link on Jul. 13, 2020

For a tool I've written for my Spectrum I need to port a PNG to an 8bit Bitmap. The process being copy the png image to an HTML5 canvas element, then extract the pixels then generate the bitmap header and arrange the image data appropriately.I've always known about indexed palettes and their existe…


Gotcha: Reading shorts [blog]

Written by Remy Sharp / Original link on Jul. 8, 2020

Just in case you came here to find out what kind of shorts you need to wear for the best reading experience, I'll tell you up front: you'll be disappointed. A short is a 16 bit integer. Though I think this is just as interesting!Recently I had a requirement to read a file that contained an array of…


Type Safe JavaScript with JSDoc [link]

Written by Remy Sharp / Original link on Jul. 7, 2020

I'm not a TypeScript user (I've tried and run in to my own issues), yet I do see the value in Types in code.Certainly during development with introspect into the method I want to call which helps me make sure I'm using the arguments correctly.JSDoc, in VSCode, lets me benefit from these type featur…


Oh Mummy - 7-Jul 2020 [devlog/oh-mummy]

Written by Remy Sharp / Original link on Jul. 7, 2020

This most recent round of development has been dedicated to squashing out bugs and investing in performance optimisations.What's particularly fun about NextBASIC is that it's so close to the metal (as it were) - NextBASIC -> interpreter -> machine code - that it has a heavy hand in the code…


"Share the knowledge for free" [blog]

Written by Remy Sharp / Original link on Jul. 3, 2020

That title is in "air quotes" - just to be clear. I'm writing this so I don't have to repeat myself, because this sentiment has come up over and over and over. Not just for me, but for you, for your peers, your friends and many other anonymous creators out there."Share the knowledge for free" - ano…