Skip to main content

Questions tagged [stroke]

a line drawn along a path

stroke
0 votes
0 answers
4 views

How can I remove the stroke radius from text generated using Python Pillow?

I want a stroke around the text, but when I use the built-in parameters of the text function, the border has rounded edges. I want the border to have sharp, cornered edges instead. font = ImageFont....
user26304417's user avatar
1 vote
0 answers
25 views

How to achieve smooth paint strokes like Adobe Illustrator in Javascript?

I'm looking for techniques or algorithms to make my webapp's strokes smooth like in those drawing apps. Currently I have achieved calligraphy style brush but there are still jagged edges. My Stroke ...
Quốc Cường's user avatar
-1 votes
0 answers
26 views

Changing stroke colour on scroll with jQuery

So I have a Lottie animation that I am trying to change stroke color as the page is scrolled. Forgive me as I am new to this, but I pinched this code off here and it works fine. How would I edit it so ...
danny244's user avatar
0 votes
1 answer
46 views

How to color SVG pattern when using `use`

I expect three diagonal stripe rectangles colored with red, green, yellow respectively, but it draws empty rectangles that colored only the border. <svg width="100%" viewBox="0,0,100,...
KevinBui's user avatar
  • 999
0 votes
0 answers
31 views

CAShapeLayer stokeLine has a border like line when theme changes

I used CAShapeLayer to draw a line above a customized UIView. It looks perfect when draw for the first time. But when I switch theme the stoke line of the CALayer contains a border like line. I dont ...
Yogesh Waran's user avatar
0 votes
0 answers
14 views

How to give gradient effect in animation stroke? Everything has been done, but it's not happening

,,, https://codepen.io/intelli2018/pen/MWRGVpw (Demo) Above is the demo for what I tried to develop on CodePen. Please have a look image I am working on this..... Reference image for Gradient line ...
deepak patidar's user avatar
0 votes
0 answers
20 views

how do I change the alpha channel along a path in cairo?

In an application using gtk3, I use cairo to do some drawing. What I would like to do is increase the transparency along the path. The path can have any shape. In very simplified terms, I have ...
user52366's user avatar
  • 1,097
0 votes
1 answer
174 views

SVG stroke color won't change

I'm having trouble getting the stroke color on an SVG to change. Here I have an SVG from the Material Symbols library that displays in black: <svg xmlns="http://www.w3.org/2000/svg" height="24" ...
scott8035's user avatar
  • 443
0 votes
0 answers
31 views

Android: outer EditText border stroke

I'm using the following XML shape to add a coloured border to any EditText of my app to indicate it is focused: <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> ...
Diego Perez's user avatar
  • 2,566
0 votes
1 answer
76 views

Composable Button Border Stroke looks weird

I am trying to implement a button with a black containercolor and a white border, but the edge of the stroke add a black color too on it and i dont know why. The code: @Composable fun Button(){ ...
Delug3's user avatar
  • 93
0 votes
1 answer
43 views

Is it possible to delete only the shapes that have only a fill an no stroke?

I would like to keep only the shapes that have no fill on this map : https://commons.wikimedia.org/wiki/File:Antarctica_in_the_World_(yellow).svg Obviously, I don't want to remove all the other ones ...
oli_vi_er's user avatar
  • 147
1 vote
0 answers
52 views

HTML canvas: unsatisfying results when drawing a border around a filled shape

Here are 4 examples on how to draw (in an HTML canvas) a filled shape with a border. Only one of them gives a clean result and I wish to understand why: let canvas = document.getElementById('...
Yosko's user avatar
  • 339
1 vote
0 answers
55 views

Canvas drawings, lines, are blurry

I'm currently working on creating a drawing animation in which I connect various elements using lines drawn on an HTML canvas. However, I've encountered an issue where the lines I draw appear to be ...
Kilian's user avatar
  • 11
0 votes
1 answer
166 views

java Graphics2D set stroke width dynamically

I have this code for Java Paint App. I have added a slider that changes from 1 to 20 with a default size of 1.This slider is for changing the strokeSize dynamically,so i have created a variable ...
Petarnan's user avatar
-2 votes
1 answer
344 views

Mapkit SwiftUI MKPolygon border color

I am wirting an app for iOS 17 to check out the new and improved MapKit support in SwiftUI. So far, I have managed to draw MKPolygons and give them Polygons a Fill color, by using: MapPolygon(...
Wouter's user avatar
  • 136

15 30 50 per page
1
2 3 4 5
33