Questions tagged [outline]

outline is a property in CSS, that is used to draw a line around the element. Question that has the problem related to outline property of CSS.

An outline is a line that is drawn around elements (outside the borders).

The outline is not a part of the element's dimensions, therefore the element's width and height properties do not contain the width of the outline.

This link contains the example of outline .

The tutorial is here.

473 questions
2
votes
1 answer

How can I check whether a fragment lies on the edge of a texture

I am currently trying to write a simple outline shader in glsl (using SFML). I am new to shader programing so forgive me if the question is obvious. Anyway, the shader works fine for detecting edges within the texture but fails to detect the borders…
2
votes
2 answers

Is it possible to Outline a view port in threejs?

I've created a scene with two cameras and one renderer. each camera is looking at the scene from a different angle and I have the first camera rendering on the entire screen then the second camera I have rendering in a small view port laying on top…
2
votes
1 answer

Qt 5.6, how to draw text with a different fill and outline colours

I'm using Qt5.6, I am drawing text on a video window, however sometimes the text is not very readable due to the video content in the window. I'm current drawing the text on the painter context with the 'drawText' method. Whilst I can set the pen…
SPlatten
  • 5,334
  • 11
  • 57
  • 128
2
votes
0 answers

Three.js/WebGL: Use black and white scene as a mask to make an outline

I'm having trouble with an effect I'm trying to achieve in Three.js. I want to get outlines in my game, but I also want them to be affected by depth. I am using 3 scenes (one which has the main model, one which has the mask, and one which has…
Milun
  • 91
  • 1
  • 7
2
votes
1 answer

Xml: stroke, border, outline text inside button

I want to add a white stroke to black text inside a button. I can figure out to do this with regular textview but not when it comes to a button. Thi is regarding Xml android studio btw. activity_main.xml:
2
votes
3 answers

Why doesn't this simple HTML CSS text stroke work?

My ultimate goal is to make an effect like this: http://codepen.io/yoksel/pen/XJbzrO (bottom of page). But I can't even get this simple text outline to work. Test