Skip to content

Instantly share code, notes, and snippets.

@knghtbrd
Last active October 7, 2021 03:22
Show Gist options
  • Save knghtbrd/5be384f6a76288e43e819c349941a521 to your computer and use it in GitHub Desktop.
Save knghtbrd/5be384f6a76288e43e819c349941a521 to your computer and use it in GitHub Desktop.
A LinApple logo

I wanted to come up with something that was kinda Apple IIe flavored for LinApple. What better than something the Apple IIe could draw on its screen?

I decided this looked decent:

To recreate this, I started with ye bog standard rainbow Apple logo recreation, mostly in case it happens to matter for legal reasons. (The rainbow Apple logo is not a currently held registered trademark of any company or iCompany.) I unioned the pieces and set the fill color to black, giving me a solid silhouette which would get me in trouble El Fruity Legal Department if I stopped there. I duplicated this path object, changed the fill to red, broke apart two pieces, and then ungrouped them. Still selected, I inset them one step with ctrl-( (ctrl-shift-9 on a US keyboard).

At this point, I had three paths that looked like a red filled apple with a black stroke. I then created a thin rectangle easily wider than the apple and a height of 2 and put it where I thought it should be. I then created two more and fiddled with them until they had the right Y coordinates, or seemed to. I didn't actually do that in vim this time, I used the Inkscape XML editor for the quick tweaks. The Y coordinates of the three bars ended up 65, 100, and 135. Works for me.

I selected the apple body (not the leaf) and all three bars and did a path intersection on them. This basically did the equivalent of an XOR on the union of paths. I now had three bars that came right up to the edge of the apple on each side, and four sections of apple with bar shaped cutouts in the middle. Break apart, ungroup, and delete the three bar pieces on each side. Now I have four slizes of red apple on a black background.

Pull the fill colors for each slice (and the leaf) from the screenshot. How'd it turn out? This is unoptimized yet:

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@knghtbrd
Copy link
Author

I'm not 100% sure the colors are 100% right on this, although I did select them using the color picker tool in Inkscape. Seems like the purple should be more faded. Maybe just the result of JPEG artifacting on the exact pixel I used?

@ghedger
Copy link

ghedger commented Nov 28, 2018

It's fantastic!

@rhaleblian
Copy link

Pleasantly old school. Of course, somebody will want to write the code to actually draw a version of this in Apple BASIC for the master disk.

@xandark
Copy link

xandark commented Oct 7, 2021

very nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment