SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Coloring T-shirt with ajax

    I have recently got a task to develop web application for coloring t-shirts. I have manged to find solution for coloring t-shirts which have regular shape which can be seen at www.zkaradza.com/bojanje/.

    But now I need some solution for coloring sleeves and neck.

    Here is the sample image just to feel what I want to achieve:
    Attached Images Attached Images

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What about making the t-shirt image with transparent bits where you want to color, then sticking a background color behind it depending on what the user selects?

  3. #3
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is not solution. Only in case I need to color sleeves and body of t-shirt. I have found perfect solution at http://www.free-coloring-pages.com/g...ook/index.html

    But I can not find the script they have used

  4. #4
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They use a java applet embedded in the page.

    The sample image you provided could be coloured using my technique if you made the pink bits transparent.

  5. #5
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your technique is okay as long as I use samo color for sleeves and neck. But what if I need different colors for those parts. Also I need to color the body of the t-shirt which is now white.

  6. #6
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have a sample of the t-shirt image?


  7. #7
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gRoberts View Post
    Do you have a sample of the t-shirt image?
    Here is the sample image. Notice 3 color, blue,dark blue and yellow.
    Attached Images Attached Images

  8. #8
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Due to Sitepoint's rules, they have to aprove images before they will allow anyone to see them. It may be productive to upload the image to imageshack or similar and post the url.


  9. #9
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  10. #10
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looking into this, I think Flash is probably going to be your best approach.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •