Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Cover of The Sun Also Rises #190

Open
adregan opened this issue Dec 1, 2015 · 8 comments
Open

The Cover of The Sun Also Rises #190

adregan opened this issue Dec 1, 2015 · 8 comments

Comments

@adregan
Copy link

adregan commented Dec 1, 2015

I generated this in the middle of Nov. and forgot to submit it: alsorises.org

The code used to generate it is here (the scripts are in the book_scripts dir): https://github.com/adregan/pnger

I took a picture of the cover of The Sun Also Rises converted it to a PNG and then decoded the PNG and for each pixel got the nearest named color. It's 800 chapters long and 803,218 word (according to wc). There is also an audio book version that's 173 hours and like 2.5 gigs.

@hugovk
Copy link
Collaborator

hugovk commented Dec 2, 2015

Wow!

@greg-kennedy
Copy link

Chapter 786 includes a sentence "Black, invisible."... It looks like your image had exactly one transparent (alpha-channel=0) pixel! This may be the highlight of the entire novel.

I couldn't read 800 chapters of this, so I coded a script to do it for me. Consider this the Cliff's Notes version:
out

@adregan
Copy link
Author

adregan commented Dec 2, 2015

That is amazing @greg-kennedy! And I did in fact delete a single pixel leaving a transparent hole. There was a practical reason (seemingly), but I'm glad it's taken on a new life.

@hugovk
Copy link
Collaborator

hugovk commented Dec 2, 2015

It's great the original image was preserved so well in the book!

For your next trick, @greg-kennedy, decode the cover from the audiobook.

@muffinista
Copy link

Wow, this is awesome, well done! It's random, but at certain screen sizes it seems like you can't click on a couple links:

screenshot 2015-12-02 16 24 31

Neither "read online" or the hidden link are clickable for me, although resizing fixes it.

@adregan
Copy link
Author

adregan commented Dec 2, 2015

I forgot about that bug. Do you by chance have scrollbars on @muffinista?

I need to try to fix this up. The problem is that I am using the css viewport relative units and for some reason, the browser isn't taking into account the scrollbars, so the elements are as large as if there weren't scrollbars but behave as if the width of the viewport is the width with the scrollbars.

@muffinista
Copy link

I think I do? I have a vertical scrollbar on the page anyway. Here's a bigger screenshot:
screenshot 2015-12-02 16 43 33

@adregan
Copy link
Author

adregan commented Dec 2, 2015

There are the scrollbars :D. I added a quick fix, so you should be able to read all the text now.

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

No branches or pull requests

4 participants