
94 6. Data Visualization with WebGL
as we have less code to translate. is is because GLSL is virtually the same language
between desktop OpenGL and OpenGL ES 2.0/WebGL.
As we will see later in this chapter, gloo plays a central role in our Python-to-WebGL
translation processes.
6.2.3 Visuals
e gloo layer forms the foundation of VisPy’s higher level graphics layers. Reusable
visualization primitives are encapsulated in Visuals. Each visual represents a graphical
object (line, image, mesh, and so on). It encapsulates several gloo objects and provides
a Pythonic interface to control their appearance. Whereas the abstraction level of gloo
corres ...