Drawing mandalas with PHP for my Papa

No Comments

A sample mandala I have generated

The earliest memories I have of computers is a contraption my dad rigged up that would draw mandalas on a screen. Later in my life he wrote software that would plot large mandalas on his huge plotters.

In my last project, I learned about image generation using PHP and realized that it might be possible to use PHP functions to draw mandalas. After a couple hours of relearning trig, I was able to create a script that outputs a .png image of a mandala based on the size and number of points that you give it.

Give it a try:



Source code: here.

Only the first and last letters of a word need be in the right place

1 Comment

After my dad showed me an article in the Funny Times about the how the only letters that really matter when we read are the first and last, I thought it would be fun to write a little script to scramble the inner letters of words.

Give it a try here.

Or check out the source here.