Welcome, Guest. Please login or register.

Author Topic: Deluxe Paint on a browser  (Read 7657 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline blitterobjectTopic starter

  • Newbie
  • *
  • Join Date: Feb 2011
  • Posts: 11
    • Show all replies
    • http://thecommodoreamiga.com
Deluxe Paint on a browser
« on: February 27, 2011, 11:30:21 PM »
Not sure if this is the right forum for this, but my Intel 286 of a brain couldn't decide on a suitable one, so mods feel free to move at will...

Anyway, on my Amiga Blog that I've mentioned elsewhere on here (and thanks again for all the top feedback!) I've just lately posted what began as a few thoughts on Deluxe Paint, and grew into the beginnings of a functional Dpaint clone on the web:

http://thecommodoreamiga.com/?p=57

It's quite basic at the moment- you can select a colour and paint using the continuous line tool, and then clear the screen. It's using the html5 canvas element, some javascript and an html-based interface. So in theory, my intention is to develop it into something useful and functional, at least in the eyes of anyone who (like me) views Deluxe Paint as one of the most useful and functional art packages there ever was.

It seems to work fine for me in Chrome and Firefox, but IE and other non-html5 aware browsers will probably be disappointed...
Everything was better on the Commodore Amiga...
 

Offline blitterobjectTopic starter

  • Newbie
  • *
  • Join Date: Feb 2011
  • Posts: 11
    • Show all replies
    • http://thecommodoreamiga.com
Re: Deluxe Paint on a browser
« Reply #1 on: February 28, 2011, 11:13:47 PM »
Quote from: lsmart;618367
It´s a great start. I tried it in Chrome and it worked OK, however the mouse cursor didn´t look right most of the time and wasn´t centered. The speed and feel of the freehand tool is surprisingly good. Keep that code if you can.
If it one day supports zoom, palette modification, lines, boxes, (basic) fill and ellipses you should show it to a broader audience. They will love it.
Oh, and can you load and save to/from local storage?


Yeah, I need to iron out some cursor issues, definitely. I've got the right-click background colour selection working, insofar as right-clicking on a colour changes the background colour indicator, and sets the background to that colour when you clear the screen. Should be simple enough to get the right mouse button to draw in the background colour - when I get a minute....

I've found some bucket fill code that I should be able to integrate.

Saving / loading shouldn't be too much hassle to implement either.

I can broadly envisage how I might go about coding a zoom and palette modification, but the details might take me a while...

Anyway, glad you all enjoyed it (so far).
Everything was better on the Commodore Amiga...
 

Offline blitterobjectTopic starter

  • Newbie
  • *
  • Join Date: Feb 2011
  • Posts: 11
    • Show all replies
    • http://thecommodoreamiga.com
Re: Deluxe Paint on a browser
« Reply #2 on: March 02, 2011, 09:27:12 PM »
Thanks everyone! Please do check back for updates- I don't want to spam forums every time I change a line of code...
Top priorities: bucket fill, cursor improvements, saving/loading.

DonnyEMU- you're the first person I've heard of using IE9- glad to hear it's functioning there!
Everything was better on the Commodore Amiga...
 

Offline blitterobjectTopic starter

  • Newbie
  • *
  • Join Date: Feb 2011
  • Posts: 11
    • Show all replies
    • http://thecommodoreamiga.com
Re: Deluxe Paint on a browser
« Reply #3 on: March 07, 2011, 11:02:22 PM »
Thanks again for the positivity- I haven't forgotten about this, just trying to find time in about everything else I have to find the time to do...

Anyway, bucket fill soon, I promise. I've got an algorithm worked out. And I also made a very minor bug fix for Chrome, where the cursor was defaulting to the text cursor whenever you tried to paint.

Anyway, once I make my fortune and don't need to work, and my kids learn to change their own nappies / use the toilet etc, I'll totally work on this full time.
Everything was better on the Commodore Amiga...