stroke Questions

2

I'm using svg/d3 for creating a chart made of 'rect' elements. What is the best way for adding a partical border/stroke for each rectangle (only on top of the rectangle)? Thanks
Cuttler asked 28/7, 2013 at 14:1

8

Solved

What I want to do? (blue will be changed as white) What I did? I have found a class which extends TextView that able to outline textview very close to what I want. The problem is that I could not...
Foetid asked 26/2, 2013 at 14:36

14

Currently building a browser-based SVG application. Within this app, various shapes can be styled and positioned by the user, including rectangles. When I apply a stroke-width to an SVG rect eleme...
Polio asked 30/8, 2011 at 9:49

3

Solved

For a certain style I'm going for, I want to outline a group of shapes in SVG. Applied to a group, the stroke property appears to outline each shape individually--effectively going on top of other ...
Chyack asked 22/2, 2012 at 9:14

3

Solved

Is it possible to add a linecap to only one end of a stroke? Not both ends as is the default shown in the sample below. <?xml version="1.0"?> <svg width="120" height="120" viewBox="0...
Sclar asked 5/10, 2017 at 19:33

9

Solved

I'm trying to make text-stroke in SwiftUI or add a border on my text, in the letters not the Text() item. Is it possible? I want to make this effect with the border: (source: noelshack.com)
Rapp asked 2/8, 2019 at 22:37

4

I have a ShapeableImageView here, with 5dp stroke: <com.google.android.material.imageview.ShapeableImageView android:id="@+id/profile_picture" android:layout_width="100dp" ...
Woodwork asked 24/2, 2021 at 4:10

4

Solved

I would like to simulate and "inside stroke" on an svg path. I have an svg map with multiple complex paths (countries) each with a different fill color stroke. And i would like to add a "fake insid...
Mettah asked 24/2, 2017 at 16:33

3

I am following Apples "Creating and Combining View" SwiftUI Tutorial and on Section 4 Step 5 I am asked to add a Gray Stroke, which I can do but doesn't show the colour or give me a line width. ....
Galliett asked 30/3, 2020 at 11:23

7

I need to change the stroke color from the app. The user is able to change the background color so I need to also let them change the stroke (outline) of the button. As its is already set in the dr...
Dunghill asked 23/1, 2011 at 5:49

2

Solved

I am writing a code that generate start and end points of strokes of a picture (Raster images) to let robot arm paint. I have wrote an algorithm but with too many overlapping strokes: https://githu...
Talkathon asked 7/7, 2022 at 12:31

1

Is there any option in SVG to make stroke inside to the element ? #html-cup { stroke: #f00; stroke-opacity: 0.5; stroke-width: 4px; fill: #666666; } <?xml version="1.0" encoding="...
Subsidiary asked 17/10, 2015 at 9:53

2

Solved

I'm trying to create a resizable button that has an evenly dotted circle border around it. If you simply put: Circle() .stroke(color, style: StrokeStyle(lineWidth: 3, lineCap: .butt, dash: [3, rad...
Outstare asked 1/7, 2021 at 22:32

1

Solved

I have an .SVG where I call with <img src="/image/arrow.svg" alt="Arrow">. Everything is good, but I would like to dynamically set a different stroke color (Not fill color...) for my SVG like...
Giraudoux asked 8/7, 2019 at 14:19

1

The following code works fine. So really, I’m good ... But I wanted to learn about ViewModifiers ... so my goal is to separate the non-changing stuff from the dynamic stuff to create a .cardify() c...
Withrow asked 1/7, 2020 at 16:57

2

Solved

I wish to draw lines on my canvas with width that gradually vary from start to end. That is, say the line starts at (0, 0) with width = 1 (equivalently, strokeWeight) and ends at (50, 50) with widt...
Soni asked 26/6, 2020 at 17:57

1

Solved

I've created a few svg-based icons for a small website I'm working on but I'm having trouble getting the stroke to look how I'd like. If you look at this jsfiddle you can see my issue. The stroke f...
Guadalquivir asked 29/5, 2020 at 22:49

6

Solved

I'm trying hard to find a way to simply add an outline/stroke/contour to my UILabel text. Talking about a stroke around the letters of the text not around the background of a UILabel. I'm using sw...
Resign asked 13/11, 2016 at 15:19

2

Solved

I've been making a simple UIBezierPath animation with Swift. This path consists on creating a rounded rectangle with a colored border. The animation must be the drawing of the colored border. To do...
Compression asked 25/4, 2016 at 12:1

3

I can draw a square with a border on my canvas perfectly fine. However, when I attempt to clear this square-with-border shape using the clearRect() function, some strokes do not get cleared. HTML ...
Zoril asked 3/10, 2014 at 3:51

3

Solved

I am trying to make a drawable to use for a button. I would like it to have this coloring, with a 2px border around it. Everything works just fine except I cannot get the border to show up... &lt...
Snowstorm asked 14/7, 2011 at 19:33

1

Solved

Having used Postscript for years, I am now learning SVG. There is a feature of PS that I have not been able to replicate so far: zero-width lines. In PS, a line with zero width is always visible: P...
Philipines asked 2/8, 2018 at 12:46

3

Solved

I'm working on a doodling app in HTML5 and I would like to do a sort of bucket feature. The idea is to draw a path and it will be closed and filled with the selected colour (colour of the stroke). ...
Chansoo asked 10/2, 2012 at 16:52

3

I created a rectangle shape in order to use it as list item background. My problem is the stroke does not follow the view border but let a margin of +/- the stroke width. Here is the xml of my sha...
Feinberg asked 23/1, 2012 at 17:24

1

Solved

Ok, so i am making a 3D rendering engine in pure javascript, as a challenge of course - to test my linear algebra skills. I am not using webgl, so please do not say "use webgl". Anyways, the softw...
Equanimity asked 1/11, 2017 at 5:46

© 2022 - 2025 — McMap. All rights reserved.