Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cap-round dashed border doesn't work on a closed geometry #200

Closed
tinchodias opened this issue Dec 23, 2022 · 0 comments
Closed

Cap-round dashed border doesn't work on a closed geometry #200

tinchodias opened this issue Dec 23, 2022 · 0 comments

Comments

@tinchodias
Copy link
Collaborator

Expected (okay in Sparta-Cairo):
Screenshot 2022-12-23 at 15 19 53

Actual (in Alexandrie):
Screenshot 2022-12-23 at 15 19 36

Code:

radius := 50.
borderWidth := 15.
segmentLength := 10.
numberOfDashes := 9.
dashes := { segmentLength. ((Float twoPi * radius) / numberOfDashes) - segmentLength }.

e := BlElement new
	relocate: 20 asPoint;
	size: (radius * 2) asPoint;
	outskirts: BlOutskirts inside;
	geometry: BlCircleGeometry new;
"	geometry: (BlLineGeometry from: 0 asPoint to: 100 asPoint);
--> Open geometry is okay in both canvas"
	outskirts: BlOutskirts centered;
	border: (BlBorder builder
		paint: Color black;
		width: borderWidth;
		dashArray: dashes;
		capRound;
		build);
	yourself.
	
BlSpace new
	addChild: e;
"	host: BlOSWindowSDL2Host new; --> okay in Sparta-Cairo"
	host: BAOSWindowSDL2Host new;	
	show
tinchodias added a commit that referenced this issue Dec 23, 2022
Fix  #199, #200 and partially #201
tinchodias added a commit that referenced this issue Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant