Share your repls and programming experiences

← Back to all posts
BasicLogo
h
AdCharity (1287)

Credits

:P Thanks to SixBeeps for giving me moral support and tips and Repl.it for actually making Basic possible

Wut

Basically this program just prints out my AdCharity logo (you're going to have to wait a bit, but it's worth it)

Commentshotnewtop
PDanielY (976)

You didn't made this your program did, there's a different.
¯_(ツ)_/¯

SixBeeps (2289)

This is pretty POG not gonna lie

amasad (2372)

@CodingCactus a bunch of performance optimization. Mostly around making it buffer updates to the display until a reasonable time (either a certain number of steps or when we see a pause statement)

SixBeeps (2289)

@amasad Awesome! It runs a ton faster now!

CodingCactus (2431)

What are all the "f"s and numbers in the D variable for?

AdCharity (1287)

@CodingCactus basically the D variable holds a crap ton of hex color codes all joined together. A loop at the bottom takes it and prints a color every 6 letters (a solid color, get it hex => 6) into a new spot. The idea was from SixBeeps.

the fffs would be for the color white.

CodingCactus (2431)

@AdCharity oh, how do you translate an image into the hex values?

AdCharity (1287)

@CodingCactus Actually I take rgb values, convert each one to their corresponding hex values, and string them together to get a final hex color. It's just matter of converting numbers; I found this to be a pretty good resource while I was building the code: https://campushippo.com/lessons/how-to-convert-rgb-colors-to-hexadecimal-with-javascript-78219fdb

CodingCactus (2431)

@AdCharity how do you take rgb values?

AdCharity (1287)

@CodingCactus i don't know if Basic supports rgb. It can take string colors like green and hex. I found this while I was researching: http://www.quitebasic.com/

MrEconomical (2194)

I'm going to do something with pg-basic as well once plotting is fixed ;)

shaanbomb123 (3)

so cool! Also if it's not too much of a problem, can you do it for my logo? If you say yes I will send you the logo.

shaanbomb123 (3)

Thank you! Here it is:

AdCharity (1287)

@shaanbomb123
Here's the repl with the bee
https://repl.it/join/puenbwyq-adcharity
Sorry about the late response I was surfing the net lol

shaanbomb123 (3)

Thank you so much! I needed to do some thing exactly like that for my website, and when I saw your project I couldn't resist asking!

shaanbomb123 (3)

oh and you actually did it 10x as fast as I thought you would, the code output was a spitting image
of my logo, thanks!