Comments (2)
Don't you get the same results with PIXI.Graphics
? The number of segments the arc is build from is defined by PIXI.GRAPHICS_CURVES._segmentsCount
.
from graphics-smooth.
@dev7355608 This is helpful info. However I noticed that when I call drawRoundedRect
or drawCircle
, the method now called Graphics.curves._segmentsCount
is never called. Is there a way I can make it work for these two methods?
Update: after some digging, I realized that the key is in this part,
graphics-smooth/src/shapes/CircleBuilder.ts
Lines 67 to 68 in 93493e1
where the number of segments is determined solely by the radius. However such an approach fails to consider coordinate transformations. If the local coordiantes are scaled up a lot, the circles will have relatively small radii, leading to very few segments and bad result. Could you guys do something about this? (My current workaround is to apply additional scaling down on those circle and increase their radii respectively.)
from graphics-smooth.
Related Issues (20)
- Is there a plan to support batching of multiple graphics elements? HOT 4
- The graph is scaled and the actual graph width remains the same HOT 2
- BeginHole PIXI. Smooth. SmoothGraphics whether can support HOT 1
- Draw a circle, the circle is not smooth, please confirm whether the circle can be more smooth HOT 1
- When the image scale is reduced by 20 times, the green RGB(0,255,0) changes to the dark green RGB(0,76,0). HOT 1
- After using Graphic to draw graphics, you can directly use graphic.pluginname to change the color without redrawing. With SmoothGraphics, you can't change the color directly HOT 1
- SmoothGraphics is used to draw a circle, which is composed of many points. The circle is not smooth after being magnified, and the amount of data is very large. HOT 1
- Setting graphic.interactive = true, gives errors HOT 10
- Support Pixi 7 HOT 2
- Using graphics-smooth with pixi-legacy 6.5 with typescript won't build HOT 2
- This plugin does not appear to support pixi devtool HOT 3
- Is this available in a CDN? HOT 2
- OMG This is AMAZING. Game Changing. Is it possible to Beazer some parts of the line. HOT 3
- A couple questions about the implementation of smooth scrolling and quadraticCurveTo HOT 2
- `utils.premultiplyTint` deprecated HOT 1
- Mask support HOT 1
- Colour bleed from underneath lineStyle border HOT 1
- Type error for SmoothGraphics in renderer.generateTexture
- Will this be for version 8 pixi as of v8.0.0-beta.6 it is not working HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphics-smooth.