MaLiang icon indicating copy to clipboard operation
MaLiang copied to clipboard

iOS painting and drawing library based on Metal. 神笔马良有一支神笔(基于 Metal 的涂鸦绘图库)

Results 52 MaLiang issues
Sort by recently updated
recently updated
newest added

I tried to enable mssa using sampleCount = 4 for both the MTKView and the pipelinestatedescriptor, but I had to switch the empty texture to type2DMultisample. As a result, metal...

It should look like this, otherwise some lines can be omitted on redraw. ``` internal func commitCommands() { commandBuffer?.addCompletedHandler { cb in self.modified = true } commandBuffer?.commit() commandBuffer = nil...

新开 issue,渐进恢复数据问题集中在这里讨论

enhancement

Pinch zoom is not working properly in ScrollableCanvas in iOS 14 I have tried like https://github.com/codelynx/Metal2DScrollable but have some issue in redraw content. can you please help me to integrate...

And probably this is the reason for using 5pt step It can be delegated to GPU using kernel metal function. I bet there are a lot of other places with...

I think this issue is all over the code, bezier generator, opacity calculation, making buffer with brush steps, blending. I don't even know how to approach this one. These are...

I'm using custom Brush and I set alphaBlendOperation = .max so I can always take the maximum alpha, however the brush works really great except for one situation when I...

设置了opacity=1.0,但是在size很小的时候的确是实心的,但是一旦画笔size设置大,就出现了透明状态。 ```swift let pen = canvas.defaultBrush! pen.name = "Pen" pen.pointSize = 20.0 pen.opacity = 1.0 ``` 此外: canvas.clear() 并没有完全清除所有数据,还可以继续操作redo和undo。