# Random (Psychedelic) Art

DevFeed: [Random (Psychedelic) Art](<https://devfeed.tech/articles/random-psychedelic-art-40252.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2012/01/01/random-psychedelic-art/>)

Published: 2012-01-01T19:11:28Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [classes](<https://devfeed.tech/topics/classes.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [art](<https://devfeed.tech/tags/art.md>), [classes](<https://devfeed.tech/tags/classes.md>), [code](<https://devfeed.tech/tags/code.md>), [color](<https://devfeed.tech/tags/color.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kolmogorov-complexity](<https://devfeed.tech/tags/kolmogorov-complexity.md>), [pixel](<https://devfeed.tech/tags/pixel.md>), [primer](<https://devfeed.tech/tags/primer.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>), [random-number-generators](<https://devfeed.tech/tags/random-number-generators.md>)

## AI overview

A Python tutorial that introduces objects and classes while constructing randomized psychedelic art. It explains how images are represented as pixel grids with RGB color values and uses mathematical functions to generate colors.

## Source excerpt

And a Pinch of Python Next semester I am a lab TA for an introductory programming course, and it's taught in Python. My Python experience has a number of gaps in it, so we'll have the opportunity for a few more Python primers, and small exercises to go along with it. This time, we'll be investigating the basics of objects and classes, and have some fun with image construction using the Python Imaging Library.