gotcha

Author Topic: Background visible through the icon  (Read 1052 times)

March 21, 2018, 08:36:46 AM
Read 1052 times

Minux

  • Sr. Newbie

  • Offline
  • **

  • 2
Hey

I have made some icons for a project of mine. They are quite small, so I have to use "pixelart" style when making them. Coloring in each pixel. But the problem is that I have a green line that goes under all the icons. I want to place the icons on top of the green line, but I can see the green line under then icons in firefox and chrome. If I make a "large" square it blocks the green line, but when I draw pixel lines beside each other the green line is visible.

I have no idea how to fix the icons so the line is not visible. I would rather not split up the green line to remove the problem I would like to have the icons to be non transparent.

Best regards
MinuX

March 21, 2018, 08:56:33 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

When you say you're using the "pixelart style" do you mean that you're making tiny, 1 px squares to create the icons?

From your description, I think the problem is being caused by anti-aliasing, which is how Inkscape makes it's lines, and especially curves so crisp and smooth.  (As far as I understand, almost all text that you see on the internet uses it too.)

If your drawing is nothing but tiny, 1px squares, then you can probably solve this problem by removing the anti-aliasing.  In Document Properties > Page tab at the bottom, is a checkbox.  If you can't see it (currently the dialog is so long, that many computer screens cover it up) you can bring it into view by at least temporarily docking the dialog.

To dock it, grab with the mouse, the bar just below the titlebar (it says "Document Properties" and it gives the key shortcut for calling up the dialog), and drag it towards the right side of the window.  When it gets close, it will snap into place and you can release the mouse.  Then you'll be able to scroll down and reach the anti-aliasing option.

If that does not seem to solve the problem, we'll need to look at your SVG file (or else we'll be doing a lot of guessing).

Edit
But note that if there is anything else in the file, besides the icons made of tiny, 1 px squares, the lack of anti-aliasing will probably be problematic.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

March 21, 2018, 05:24:12 PM
Reply #2

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
For your drawing, check:

- Layer opacity (in layers dialog, Layer > Layers...)
- Group opacity and group color alpha value (select group, open Fill+Stroke dialog (Object > Fill and Stroke) look into the field labelled A and the opacity slider)
- Object opacity and object color alpha value (select object, then same as above)

March 22, 2018, 12:31:41 AM
Reply #3

Minux

  • Sr. Newbie

  • Offline
  • **

  • 2
Oh yeah, something I forgot to say. The Icons are great on MS Edge. No transparency like they are in Firefox and Chrome.

March 22, 2018, 05:40:57 PM
Reply #4

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Lol, seems Edge is broken there... For SVG display, I'd trust Chrome (and Firefox, too) - Microsoft is a bit behind on that front with their browsers...