1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Fill element of svg

Discussion in 'JavaScript' started by comosejama, Sep 26, 2016.

  1. #1
    Hi guys I have this code: http://fiddle.jshell.net/qhfvpj4z/9/ When You pick color and click button "wypełnij". Next click to image. I dont know why clicking filled many elements of image. I want filled only one element of svg. Element which user click. Can anyone help me?
     
    comosejama, Sep 26, 2016 IP
  2. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #2
    If one image has a broken line the color will "spill over" to the next image. It works the same way with any other image editor. For a more precise coloring you usually use a brush not a paint bucket.



     
    qwikad.com, Sep 27, 2016 IP
  3. comosejama

    comosejama Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    look, this line is not broken for sure. I need to make this paint bucket functionality. I can proof You that line is not broken. Just check this example there is the same image but now at even run he automatically fill each of shape. Check this: http://fiddle.jshell.net/qhfvpj4z/12/
     
    comosejama, Sep 27, 2016 IP