File:Shadowrealm.jpg

Licensing

This image is copywritten, the copyright for which is held by {{{1}}}. It is believed that its use here constitutes Fair Use because it adheres to one or more of the following criteria:
  • it is being used “…for purposes such as criticism, comment, news reporting, teaching (including multiple copies for classroom use), scholarship, or research…”
  • it is a small and/or insubstantial portion of the work.
  • its use is transformative.
  • it is used in a non-commercial setting, and therefore is not being used to generate profit in this context.
  • its use here does not significantly impede the right of the copyright holder to sell the copyrighted material.

We ask you to please add the {{needsadmin}} template if there is a violation to this disclaimer within this page.

gollark: What?
gollark: ***gaaah***
gollark: Make sure that the first function yields enough.
gollark: It... shouldn't.
gollark: ```python#!/usr/bin/env python3from PIL import Imageimport mathimport sysdef chunks(l, n): for i in range(0, len(l), n): yield l[i:i + n]def from_bit_list(bl): i = 0 for ix, v in enumerate(bl): i |= v * (2 ** (7 - ix)) return iim = Image.open("out.png")id = im.load()(w, h) = im.sizebits = []for x in range(w): for y in range(h): bits.append(id[x, y])bits = [1 if x >= 1 else 0 for x in bits]byts = [from_bit_list(bytegroup) for bytegroup in chunks(bits, 8)]sys.stdout.buffer.write(bytes(byts))```Here it is. It's really rather awful.
This article is issued from Dandwiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.