Author Topic: fooling around with php  (Read 3991 times)

0 Members and 1 Guest are viewing this topic.

Offline derpat

  • ZX 81
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
fooling around with php
« on: September 09, 2013 »
hi all,

i tried to do some gfx stuff with php and thats what came around:

http://asm.16-bit.tk/demo1/index.php?a=1

it has a random generator for html color codes.

i know its laggy, but i dont know how to fix it.

how you like it?  :)

*fixed link
« Last Edit: September 09, 2013 by derpat »

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: fooling around with php
« Reply #1 on: September 09, 2013 »
Cool output! Reminds me of 80's modern art.

We need more PHP demos. They wouldn't run very fast, but could take advantage of AJAX for JavaScript enhancements, or create a single image from input text and a randomiser.

I might put together a random news headline script in PHP just for laughs.
You are our 9001st visitor.
Challenge Trophies Won:

Offline derpat

  • ZX 81
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: fooling around with php
« Reply #2 on: September 09, 2013 »
hey,

thanks for the reply.
maybe anyone got more information about the php-demoscene? google just finds one good hit and its a bit outdated  :-\

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: fooling around with php
« Reply #3 on: September 10, 2013 »
Here's a couple I did a while ago:




Yes, "shue" and "shuey" should be spelled "shui", but I didn't want to get sued.
Re-loading the images forces the PHP to generate a different series of words.

By tinkering with the script, it is possible to draw things other than words, or to create an ASCII Art generator from an uploaded image.
You are our 9001st visitor.
Challenge Trophies Won:

Offline jace_stknights

  • Amiga 1200
  • ****
  • Posts: 399
  • Karma: 32
  • PEEK & POKE are not MOVEM!
    • View Profile
    • ST Knights WebSite
Re: fooling around with php
« Reply #4 on: September 10, 2013 »
For this kind of code, you should only use Javascript. Php is a server language, so everything will be HTML to be understood by the browser.
Thus, with a JS script you can do the whole things and take less time to load. And also makes changes AFTER loading. That's why I think ther are nearly no PHP demos...


Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: fooling around with php
« Reply #5 on: September 11, 2013 »
If we can push the boundaries of PHP, imagine what greatness we could do with JavaScript.
You are our 9001st visitor.
Challenge Trophies Won: