Skip to content
← Back to Community
BasicLogo
Profile icon
AdCharity

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)

Voters
Profile icon
SixBeeps
Profile icon
AgastyaSandhuja
Profile icon
mkhoi
Profile icon
SilentShadowBla
Profile icon
thejoeman24
Profile icon
MrEconomical
Profile icon
Highwayman
Profile icon
AdCharity
Comments
hotnewtop
Profile icon
HackermonDev

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

Profile icon
SixBeeps

This is pretty POG not gonna lie

Profile icon
amasad

FYI I made this much faster now @AdCharity @SixBeeps @CodingCactus.

Profile icon
CodingCactus

@amasad nice, how?

Profile icon
amasad

@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)

Profile icon
CodingCactus

@amasad cool

Profile icon
SixBeeps

@amasad Awesome! It runs a ton faster now!

Profile icon
AdCharity
Profile icon
CodingCactus

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

Profile icon
AdCharity

@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.

Profile icon
CodingCactus

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

Profile icon
AdCharity

@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

Profile icon
CodingCactus

@AdCharity ok, cool

Profile icon
CodingCactus

@AdCharity how do you take rgb values?

Profile icon
AdCharity

@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/

Profile icon
MrEconomical

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

Profile icon
AdCharity

@MrEconomical I want leakssss

Profile icon
Highwayman

O.o noiiiiiice

Profile icon
shaanbomb123

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.

Profile icon
AdCharity
Profile icon
shaanbomb123
Profile icon
AdCharity

@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

Profile icon
shaanbomb123

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!

Profile icon
shaanbomb123

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!

Profile icon
AdCharity