Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8928325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:24:50+00:00 2026-06-15T08:24:50+00:00

I am knocking up a html5, js, css3 app where my images shirt can

  • 0

I am knocking up a html5, js, css3 app where my images shirt can change color.

My mock-up at the moment has the base image and the shirt image (.png) on top.

To get the alternative color (I intend 20 or so options & the same for trousers, shoes etc), I could have a dedicated .png file for each color, but that seems overkill.

Using paths with stroke() & fill() will achieve what I want, but I can’t find a method in documentation that explains how js can use paths in an image file (or what file format that might be). The examples I find draw the path within js.

Any suggestions re paths or perhaps alternative/better ways of achieving this?

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:24:51+00:00Added an answer on June 15, 2026 at 8:24 am

    I think it would be easier to make a shirt.png image with transparency where the shirt is. You could then give the a CSS background to colorize the shirt. Should be the easiest and most flexible way I think.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm knocking together a demo app based upon Nancy.Demo.Authentication.Forms . I'm implementing Claims and
At the moment I work on an android-phonegap project. Before the app loads the
Just knocking up an image switcher, and come across a small issue: I've got
I'm knocking together a wizard like web app that will take input in a
Hey there, So I'm knocking together a random pattern generation thing. My code so
We're beginning to design a new product, and our UI guy is knocking out
So I'm generating images of curvy lines. I build my lines out of the
Outline I'm building a form for a specific page, where users can make suggestions
I've knocking my head against a wall with this: Basically what I want is
Knocking my head against the wall trying to figure out a good workflow for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.