Inkscape.org
Beginners' Questions black square with a transparent square in it
  1. #1
    leon437 leon437 @leon437

    Hi friends,

    sorry my english is really bad, but the german forum doesn't work - so please answer my question simple :)

    My problem: I have a black square. I want to put a transparent square over the black one. I want to make the appearance that the black square has a hole.

     

    Best regards

    Leon from Germany

  2. #2
    Victor Westmann Victor Westmann @victorwestmann
    *

    Hi Leon,

    You are talking about having two squares? One in the background and on in the front, one on top of each other.

    I see two immediate solutions for this:

    Solution #1: Either you do a Path > Difference operation and cut the rectangle on the back by the rectangle on the top, and get your transparency.

    Solution #2: Or you can make 8 rectangle to surround the center rectangle (the rectangles in the neighbourhood of the center rectangle would all be black and the center one would not be filled, it would have transparent fill and opacity).

    Solution #3: Or you can make a really thick rectangle manipulating the borders (Stroke).

    Does this help? Try to post a picture here if you can so it becomes easier to understand what you are trying to achieve.

    Thanks.

  3. #3
    Maren Hachmann Maren Hachmann @Moini

    I don't see how the German forum didn't work? See https://inkscape.org/forums/Deutsch/frage-nach-transparenten-hintergrund-uber-objekt/

  4. #4
    leon437 leon437 @leon437

    Thank you for your help.

    First: I can't create a new account on the german forum - so it doesnt work for me.

    @victorwestmann thank you for your creative suggestions :) I add a picture of my problem, the square in square was basically a example of my problem.

    I would like to "cut" the M in two pieces - in my idea, i put the square over the M, so it looks like the M was cutted in two pieces. You know what i mean?

     

    Ink
  5. #5
    Maren Hachmann Maren Hachmann @Moini

    It's the same account, just another section of this website - try the link :)

  6. #6
    Flamingolady Flamingolady @flamingolady🦩

    hi leon437 and welcome to the forum.  Create a rectangle that looks like your 'square', except make it as thin as you can, convert it to a path, then place it on top of the M.  select both and use path>difference to cut it.  Ideally, I'd use path>division, it just depends on where on the M you want to cut as to the result. (note, path>difference does remove a portion of the M the same size as your square).  Is that what you are looking for?  You can also try other path functions, it just depends on where you put your cutting path (square as to the result you will get). 

  7. #7
    Victor Westmann Victor Westmann @victorwestmann

    Hi @leon437,

    I think @flamingolady suggested a real good solution for you! We really hope it works. Try it out, please, and let us know if you/we are still missing anything. Cheers!

Inkscape Inkscape.org Inkscape Forum Beginners' Questions black square with a transparent square in it