MENU
Context Attributes
We saw in the topic of Stencil Shadow Volume that we can pass a second parameter to .getContext(). Here we show the other attributes available.
| alpha (true): If true, requests a drawing buffer with an alpha channel. |
| depth (true): If true, requests a drawing buffer with a depth buffer of at least 16 bits. |
| stencil (false): If true, requests a stencil buffer of at least 8 bits. |
| antialias (true): If true, requests a drawing buffer with antialiasing. |
| premultipliedAlpha (true): If true, requests a drawing buffer which contains colors with premultiplied alpha. |
| preserveDrawingBuffer (true): If true, requests that contents of the drawing buffer remain in-between frames, at a potential performance cost. |