graphics - Texture argument in the Line class -


in kivy garden plot module, texture parameter passed line() constructor, , subsequently used anti-aliasing. couldn't find documentation on argument in official docs. looking @ source of line, looks parameter not parsed altogether.

is legacy parameter? if so, how used , how can functionality achieved now?

this works because smoothlineplot using custom fragment shader, defined here. uses information in texture achieve antialiasing effect.

the normal line does use texture (actually vertexinstructions can take texture parameter , have vertices including texture coordinates), in trivial way doesn't work more antialiasing, , isn't taken advantage of kivy's default fragment shader. covered in source of line, texture property checked here, , information texture coordinates use set when constructing vertices later, e.g. here.

assuming you're using kivy master (some of these changes recent, line used parse (0,0) coordinate of texture), think should able see in action assigning texture line. i'm not sure effect you'll see, texture mapped along line segments, not whole line, , in way may not give visual consistency.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -