repo_id
stringlengths
22
103
file_path
stringlengths
41
147
content
stringlengths
181
193k
__index_level_0__
int64
0
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/audioworklet/index.md
--- title: AudioWorklet slug: Web/API/AudioWorklet page-type: web-api-interface browser-compat: api.AudioWorklet --- {{APIRef("Web Audio API")}}{{securecontext_header}} The **`AudioWorklet`** interface of the [Web Audio API](/en-US/docs/Web/API/Web_Audio_API) is used to supply custom audio processing scripts that exe...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/pushevent/index.md
--- title: PushEvent slug: Web/API/PushEvent page-type: web-api-interface browser-compat: api.PushEvent --- {{APIRef("Push API")}}{{SecureContext_Header}} The **`PushEvent`** interface of the [Push API](/en-US/docs/Web/API/Push_API) represents a push message that has been received. This event is sent to the [global s...
0
data/mdn-content/files/en-us/web/api/pushevent
data/mdn-content/files/en-us/web/api/pushevent/data/index.md
--- title: "PushEvent: data property" short-title: data slug: Web/API/PushEvent/data page-type: web-api-instance-property browser-compat: api.PushEvent.data --- {{APIRef("Push API")}}{{SecureContext_Header}} The `data` read-only property of the **`PushEvent`** interface returns a reference to a {{domxref("PushMessage...
0
data/mdn-content/files/en-us/web/api/pushevent
data/mdn-content/files/en-us/web/api/pushevent/pushevent/index.md
--- title: "PushEvent: PushEvent() constructor" short-title: PushEvent() slug: Web/API/PushEvent/PushEvent page-type: web-api-constructor browser-compat: api.PushEvent.PushEvent --- {{APIRef("Push API")}}{{SecureContext_Header}} The **`PushEvent()`** constructor creates a new {{domxref("PushEvent")}} object. Note tha...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/eventcounts/index.md
--- title: EventCounts slug: Web/API/EventCounts page-type: web-api-interface browser-compat: api.EventCounts --- {{APIRef("Performance API")}} The **`EventCounts`** interface of the [Performance API](/en-US/docs/Web/API/Performance_API) provides the number of events that have been dispatched for each event type. An...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/offscreencanvas/index.md
--- title: OffscreenCanvas slug: Web/API/OffscreenCanvas page-type: web-api-interface browser-compat: api.OffscreenCanvas --- {{APIRef("Canvas API")}} When using the {{HtmlElement("canvas")}} element or the [Canvas API](/en-US/docs/Web/API/Canvas_API), rendering, animation, and user interaction usually happen on the ...
0
data/mdn-content/files/en-us/web/api/offscreencanvas
data/mdn-content/files/en-us/web/api/offscreencanvas/getcontext/index.md
--- title: "OffscreenCanvas: getContext() method" short-title: getContext() slug: Web/API/OffscreenCanvas/getContext page-type: web-api-instance-method browser-compat: api.OffscreenCanvas.getContext --- {{APIRef("Canvas API")}} The **`OffscreenCanvas.getContext()`** method returns a drawing context for an offscreen c...
0
data/mdn-content/files/en-us/web/api/offscreencanvas
data/mdn-content/files/en-us/web/api/offscreencanvas/converttoblob/index.md
--- title: "OffscreenCanvas: convertToBlob() method" short-title: convertToBlob() slug: Web/API/OffscreenCanvas/convertToBlob page-type: web-api-instance-method browser-compat: api.OffscreenCanvas.convertToBlob --- {{APIRef("Canvas API")}} The **`OffscreenCanvas.convertToBlob()`** method creates a {{domxref("Blob")}}...
0
data/mdn-content/files/en-us/web/api/offscreencanvas
data/mdn-content/files/en-us/web/api/offscreencanvas/transfertoimagebitmap/index.md
--- title: "OffscreenCanvas: transferToImageBitmap() method" short-title: transferToImageBitmap() slug: Web/API/OffscreenCanvas/transferToImageBitmap page-type: web-api-instance-method browser-compat: api.OffscreenCanvas.transferToImageBitmap --- {{APIRef("Canvas API")}} The **`OffscreenCanvas.transferToImageBitmap()...
0
data/mdn-content/files/en-us/web/api/offscreencanvas
data/mdn-content/files/en-us/web/api/offscreencanvas/offscreencanvas/index.md
--- title: "OffscreenCanvas: OffscreenCanvas() constructor" short-title: OffscreenCanvas() slug: Web/API/OffscreenCanvas/OffscreenCanvas page-type: web-api-constructor browser-compat: api.OffscreenCanvas.OffscreenCanvas --- {{APIRef("Canvas API")}} The **`OffscreenCanvas()`** constructor returns a newly instantiated ...
0
data/mdn-content/files/en-us/web/api/offscreencanvas
data/mdn-content/files/en-us/web/api/offscreencanvas/width/index.md
--- title: "OffscreenCanvas: width property" short-title: width slug: Web/API/OffscreenCanvas/width page-type: web-api-instance-property browser-compat: api.OffscreenCanvas.width --- {{APIRef("Canvas API")}} The **`width`** property returns and sets the width of an {{domxref("OffscreenCanvas")}} object. ## Value ##...
0
data/mdn-content/files/en-us/web/api/offscreencanvas
data/mdn-content/files/en-us/web/api/offscreencanvas/height/index.md
--- title: "OffscreenCanvas: height property" short-title: height slug: Web/API/OffscreenCanvas/height page-type: web-api-instance-property browser-compat: api.OffscreenCanvas.height --- {{APIRef("Canvas API")}} The **`height`** property returns and sets the height of an {{domxref("OffscreenCanvas")}} object. ## Val...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/webtransport_api/index.md
--- title: WebTransport API slug: Web/API/WebTransport_API page-type: web-api-overview browser-compat: api.WebTransport --- {{DefaultAPISidebar("WebTransport API")}}{{SecureContext_Header}} The **WebTransport API** provides a modern update to {{domxref("WebSockets API", "WebSockets", "", "nocode")}}, transmitting dat...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/audiodata/index.md
--- title: AudioData slug: Web/API/AudioData page-type: web-api-interface status: - experimental browser-compat: api.AudioData --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`AudioData`** interface of the [WebCodecs API](/en-US/docs/Web/API/WebCodecs_API) represents an audio sample. `AudioData` is a [tran...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/clone/index.md
--- title: "AudioData: clone() method" short-title: clone() slug: Web/API/AudioData/clone page-type: web-api-instance-method status: - experimental browser-compat: api.AudioData.clone --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`clone()`** method of the {{domxref("AudioData")}} interface creates a new `...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/copyto/index.md
--- title: "AudioData: copyTo() method" short-title: copyTo() slug: Web/API/AudioData/copyTo page-type: web-api-instance-method status: - experimental browser-compat: api.AudioData.copyTo --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`copyTo()`** method of the {{domxref("AudioData")}} interface copies a p...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/format/index.md
--- title: "AudioData: format property" short-title: format slug: Web/API/AudioData/format page-type: web-api-instance-property status: - experimental browser-compat: api.AudioData.format --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`format`** read-only property of the {{domxref("AudioData")}} interface ...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/allocationsize/index.md
--- title: "AudioData: allocationSize() method" short-title: allocationSize() slug: Web/API/AudioData/allocationSize page-type: web-api-instance-method status: - experimental browser-compat: api.AudioData.allocationSize --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`allocationSize()`** method of the {{dom...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/numberofframes/index.md
--- title: "AudioData: numberOfFrames property" short-title: numberOfFrames slug: Web/API/AudioData/numberOfFrames page-type: web-api-instance-property status: - experimental browser-compat: api.AudioData.numberOfFrames --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`numberOfFrames`** read-only property of...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/audiodata/index.md
--- title: "AudioData: AudioData() constructor" short-title: AudioData() slug: Web/API/AudioData/AudioData page-type: web-api-constructor status: - experimental browser-compat: api.AudioData.AudioData --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`AudioData()`** constructor creates a new {{domxref("AudioD...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/timestamp/index.md
--- title: "AudioData: timestamp property" short-title: timestamp slug: Web/API/AudioData/timestamp page-type: web-api-instance-property status: - experimental browser-compat: api.AudioData.timestamp --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`duration`** read-only property of the {{domxref("AudioData"...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/duration/index.md
--- title: "AudioData: duration property" short-title: duration slug: Web/API/AudioData/duration page-type: web-api-instance-property status: - experimental browser-compat: api.AudioData.duration --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`duration`** read-only property of the {{domxref("AudioData")}} ...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/close/index.md
--- title: "AudioData: close() method" short-title: close() slug: Web/API/AudioData/close page-type: web-api-instance-method status: - experimental browser-compat: api.AudioData.close --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`close()`** method of the {{domxref("AudioData")}} interface clears all stat...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/numberofchannels/index.md
--- title: "AudioData: numberOfChannels property" short-title: numberOfChannels slug: Web/API/AudioData/numberOfChannels page-type: web-api-instance-property status: - experimental browser-compat: api.AudioData.numberOfChannels --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`numberOfChannels`** read-only p...
0
data/mdn-content/files/en-us/web/api/audiodata
data/mdn-content/files/en-us/web/api/audiodata/samplerate/index.md
--- title: "AudioData: sampleRate property" short-title: sampleRate slug: Web/API/AudioData/sampleRate page-type: web-api-instance-property status: - experimental browser-compat: api.AudioData.sampleRate --- {{APIRef("WebCodecs API")}}{{SeeCompatTable}} The **`sampleRate`** read-only property of the {{domxref("Audi...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/gpusupportedlimits/index.md
--- title: GPUSupportedLimits slug: Web/API/GPUSupportedLimits page-type: web-api-interface status: - experimental browser-compat: api.GPUSupportedLimits --- {{APIRef("WebGPU API")}}{{SeeCompatTable}}{{SecureContext_Header}} The **`GPUSupportedLimits`** interface of the {{domxref("WebGPU API", "WebGPU API", "", "no...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/datatransferitem/index.md
--- title: DataTransferItem slug: Web/API/DataTransferItem page-type: web-api-interface browser-compat: api.DataTransferItem --- {{APIRef("HTML Drag and Drop API")}} The **`DataTransferItem`** object represents one drag data item. During a _drag operation_, each {{domxref("DragEvent","drag event")}} has a {{domxref("...
0
data/mdn-content/files/en-us/web/api/datatransferitem
data/mdn-content/files/en-us/web/api/datatransferitem/getasfilesystemhandle/index.md
--- title: "DataTransferItem: getAsFileSystemHandle() method" short-title: getAsFileSystemHandle() slug: Web/API/DataTransferItem/getAsFileSystemHandle page-type: web-api-instance-method status: - experimental browser-compat: api.DataTransferItem.getAsFileSystemHandle --- {{securecontext_header}}{{APIRef("HTML Drag ...
0
data/mdn-content/files/en-us/web/api/datatransferitem
data/mdn-content/files/en-us/web/api/datatransferitem/getasstring/index.md
--- title: "DataTransferItem: getAsString() method" short-title: getAsString() slug: Web/API/DataTransferItem/getAsString page-type: web-api-instance-method browser-compat: api.DataTransferItem.getAsString --- {{APIRef("HTML Drag and Drop API")}} The **`DataTransferItem.getAsString()`** method invokes the given callb...
0
data/mdn-content/files/en-us/web/api/datatransferitem
data/mdn-content/files/en-us/web/api/datatransferitem/getasfile/index.md
--- title: "DataTransferItem: getAsFile() method" short-title: getAsFile() slug: Web/API/DataTransferItem/getAsFile page-type: web-api-instance-method browser-compat: api.DataTransferItem.getAsFile --- {{APIRef("HTML Drag and Drop API")}} If the item is a file, the **`DataTransferItem.getAsFile()`** method returns th...
0
data/mdn-content/files/en-us/web/api/datatransferitem
data/mdn-content/files/en-us/web/api/datatransferitem/webkitgetasentry/index.md
--- title: "DataTransferItem: webkitGetAsEntry() method" short-title: webkitGetAsEntry() slug: Web/API/DataTransferItem/webkitGetAsEntry page-type: web-api-instance-method browser-compat: api.DataTransferItem.webkitGetAsEntry --- {{APIRef("HTML Drag and Drop API")}} If the item described by the {{domxref("DataTransfe...
0
data/mdn-content/files/en-us/web/api/datatransferitem
data/mdn-content/files/en-us/web/api/datatransferitem/type/index.md
--- title: "DataTransferItem: type property" short-title: type slug: Web/API/DataTransferItem/type page-type: web-api-instance-property browser-compat: api.DataTransferItem.type --- {{APIRef("HTML Drag and Drop API")}} The read-only **`DataTransferItem.type`** property returns the type (format) of the {{domxref("Data...
0
data/mdn-content/files/en-us/web/api/datatransferitem
data/mdn-content/files/en-us/web/api/datatransferitem/kind/index.md
--- title: "DataTransferItem: kind property" short-title: kind slug: Web/API/DataTransferItem/kind page-type: web-api-instance-property browser-compat: api.DataTransferItem.kind --- {{APIRef("HTML Drag and Drop API")}} The read-only **`DataTransferItem.kind`** property returns the kind–a string or a file–of the {{dom...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/clipboarditem/index.md
--- title: ClipboardItem slug: Web/API/ClipboardItem page-type: web-api-interface browser-compat: api.ClipboardItem --- {{APIRef("Clipboard API")}}{{SecureContext_Header}} The **`ClipboardItem`** interface of the [Clipboard API](/en-US/docs/Web/API/Clipboard_API) represents a single item format, used when reading or ...
0
data/mdn-content/files/en-us/web/api/clipboarditem
data/mdn-content/files/en-us/web/api/clipboarditem/presentationstyle/index.md
--- title: "ClipboardItem: presentationStyle property" short-title: presentationStyle slug: Web/API/ClipboardItem/presentationStyle page-type: web-api-instance-property browser-compat: api.ClipboardItem.presentationStyle --- {{APIRef("Clipboard API")}} {{securecontext_header}} The read-only **`presentationStyle`** pr...
0
data/mdn-content/files/en-us/web/api/clipboarditem
data/mdn-content/files/en-us/web/api/clipboarditem/clipboarditem/index.md
--- title: "ClipboardItem: ClipboardItem() constructor" short-title: ClipboardItem() slug: Web/API/ClipboardItem/ClipboardItem page-type: web-api-constructor browser-compat: api.ClipboardItem.ClipboardItem --- {{APIRef("Clipboard API")}} {{securecontext_header}} The **`ClipboardItem()`** constructor creates a new {{d...
0
data/mdn-content/files/en-us/web/api/clipboarditem
data/mdn-content/files/en-us/web/api/clipboarditem/types/index.md
--- title: "ClipboardItem: types property" short-title: types slug: Web/API/ClipboardItem/types page-type: web-api-instance-property browser-compat: api.ClipboardItem.types --- {{APIRef("Clipboard API")}} {{securecontext_header}} The read-only **`types`** property of the {{domxref("ClipboardItem")}} interface returns...
0
data/mdn-content/files/en-us/web/api/clipboarditem
data/mdn-content/files/en-us/web/api/clipboarditem/gettype/index.md
--- title: "ClipboardItem: getType() method" short-title: getType() slug: Web/API/ClipboardItem/getType page-type: web-api-instance-method browser-compat: api.ClipboardItem.getType --- {{APIRef("Clipboard API")}} {{securecontext_header}} The **`getType()`** method of the {{domxref("ClipboardItem")}} interface returns...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/domparser/index.md
--- title: DOMParser slug: Web/API/DOMParser page-type: web-api-interface browser-compat: api.DOMParser --- {{APIRef("DOM")}} The **`DOMParser`** interface provides the ability to parse {{Glossary("XML")}} or {{Glossary("HTML")}} source code from a string into a DOM {{domxref("Document")}}. You can perform the oppos...
0
data/mdn-content/files/en-us/web/api/domparser
data/mdn-content/files/en-us/web/api/domparser/parsefromstring/index.md
--- title: "DOMParser: parseFromString() method" short-title: parseFromString() slug: Web/API/DOMParser/parseFromString page-type: web-api-instance-method browser-compat: api.DOMParser.parseFromString --- {{APIRef("DOMParser")}} The **`parseFromString()`** method of the {{domxref("DOMParser")}} interface parses a str...
0
data/mdn-content/files/en-us/web/api/domparser
data/mdn-content/files/en-us/web/api/domparser/domparser/index.md
--- title: "DOMParser: DOMParser() constructor" short-title: DOMParser() slug: Web/API/DOMParser/DOMParser page-type: web-api-constructor browser-compat: api.DOMParser.DOMParser --- {{APIRef("DOM")}} The **`DOMParser()`** constructor creates a new [`DOMParser`](/en-US/docs/Web/API/DOMParser) object. This object can b...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/webgl_api/index.md
--- title: "WebGL: 2D and 3D graphics for the web" slug: Web/API/WebGL_API page-type: web-api-overview browser-compat: - api.WebGLRenderingContext - api.WebGL2RenderingContext --- {{DefaultAPISidebar("WebGL")}} **WebGL** (Web Graphics Library) is a JavaScript API for rendering high-performance interactive 3D and ...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/matrix_math_for_the_web/index.md
--- title: Matrix math for the web slug: Web/API/WebGL_API/Matrix_math_for_the_web page-type: guide --- {{DefaultAPISidebar("WebGL")}} Matrices can be used to represent transformations of objects in space, and are used for performing many key types of computation when constructing images and visualizing data on the W...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/compressed_texture_formats/index.md
--- title: Compressed texture formats slug: Web/API/WebGL_API/Compressed_texture_formats page-type: guide --- {{DefaultAPISidebar("WebGL")}} The WebGL API provides methods to use compressed texture formats. These are useful to increase texture detail while limiting the additional video memory necessary. By default, n...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/using_extensions/index.md
--- title: Using WebGL extensions slug: Web/API/WebGL_API/Using_Extensions page-type: guide --- {{DefaultAPISidebar("WebGL")}} WebGL, like its sister APIs (OpenGL and OpenGL ES), supports extensions. A complete list of extensions is available in the [khronos webgl extension registry](https://www.khronos.org/registry/...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/data/index.md
--- title: Data in WebGL slug: Web/API/WebGL_API/Data page-type: guide --- {{DefaultAPISidebar("WebGL")}} Shader programs have access to three kinds of data storage, each of which has a specific use case. Each kind of variable is accessible by one or both types of shader program (depending on the data store type) and...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/tutorial/index.md
--- title: WebGL tutorial slug: Web/API/WebGL_API/Tutorial page-type: guide --- {{DefaultAPISidebar("WebGL")}} This tutorial describes how to use the {{HTMLElement("canvas")}} element to draw WebGL graphics, starting with the basics. The examples provided should give you some clear ideas of what you can do with WebGL...
0
data/mdn-content/files/en-us/web/api/webgl_api/tutorial
data/mdn-content/files/en-us/web/api/webgl_api/tutorial/creating_3d_objects_using_webgl/index.md
--- title: Creating 3D objects using WebGL slug: Web/API/WebGL_API/Tutorial/Creating_3D_objects_using_WebGL page-type: guide --- {{DefaultAPISidebar("WebGL")}} {{PreviousNext("Web/API/WebGL_API/Tutorial/Animating_objects_with_WebGL", "Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL")}} Let's take our square plane ...
0
data/mdn-content/files/en-us/web/api/webgl_api/tutorial
data/mdn-content/files/en-us/web/api/webgl_api/tutorial/animating_textures_in_webgl/index.md
--- title: Animating textures in WebGL slug: Web/API/WebGL_API/Tutorial/Animating_textures_in_WebGL page-type: guide --- {{DefaultAPISidebar("WebGL")}} {{Previous("Web/API/WebGL_API/Tutorial/Lighting_in_WebGL")}} In this demonstration, we build upon the previous example by replacing our static textures with the frame...
0
data/mdn-content/files/en-us/web/api/webgl_api/tutorial
data/mdn-content/files/en-us/web/api/webgl_api/tutorial/lighting_in_webgl/index.md
--- title: Lighting in WebGL slug: Web/API/WebGL_API/Tutorial/Lighting_in_WebGL page-type: guide --- {{DefaultAPISidebar("WebGL")}} {{PreviousNext("Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL", "Web/API/WebGL_API/Tutorial/Animating_textures_in_WebGL")}} As should be clear by now, WebGL doesn't have much built-...
0
data/mdn-content/files/en-us/web/api/webgl_api/tutorial
data/mdn-content/files/en-us/web/api/webgl_api/tutorial/getting_started_with_webgl/index.md
--- title: Getting started with WebGL slug: Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL page-type: guide --- {{DefaultAPISidebar("WebGL")}} {{Next("Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context")}} [WebGL](/en-US/docs/Web/API/WebGL_API) enables web content to use an API based on [OpenGL ES...
0
data/mdn-content/files/en-us/web/api/webgl_api/tutorial
data/mdn-content/files/en-us/web/api/webgl_api/tutorial/using_textures_in_webgl/index.md
--- title: Using textures in WebGL slug: Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL page-type: guide --- {{DefaultAPISidebar("WebGL")}} {{PreviousNext("Web/API/WebGL_API/Tutorial/Creating_3D_objects_using_WebGL", "Web/API/WebGL_API/Tutorial/Lighting_in_WebGL")}} Now that our sample program has a rotating 3D c...
0
data/mdn-content/files/en-us/web/api/webgl_api/tutorial
data/mdn-content/files/en-us/web/api/webgl_api/tutorial/adding_2d_content_to_a_webgl_context/index.md
--- title: Adding 2D content to a WebGL context slug: Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context page-type: guide --- {{DefaultAPISidebar("WebGL")}} {{PreviousNext("Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL", "Web/API/WebGL_API/Tutorial/Using_shaders_to_apply_color_in_WebGL")}} Once y...
0
data/mdn-content/files/en-us/web/api/webgl_api/tutorial
data/mdn-content/files/en-us/web/api/webgl_api/tutorial/animating_objects_with_webgl/index.md
--- title: Animating objects with WebGL slug: Web/API/WebGL_API/Tutorial/Animating_objects_with_WebGL page-type: guide --- {{DefaultAPISidebar("WebGL")}} {{PreviousNext("Web/API/WebGL_API/Tutorial/Using_shaders_to_apply_color_in_WebGL", "Web/API/WebGL_API/Tutorial/Creating_3D_objects_using_WebGL") }} ## Making the sq...
0
data/mdn-content/files/en-us/web/api/webgl_api/tutorial
data/mdn-content/files/en-us/web/api/webgl_api/tutorial/using_shaders_to_apply_color_in_webgl/index.md
--- title: Using shaders to apply color in WebGL slug: Web/API/WebGL_API/Tutorial/Using_shaders_to_apply_color_in_WebGL page-type: guide --- {{DefaultAPISidebar("WebGL")}} {{PreviousNext("Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context", "Web/API/WebGL_API/Tutorial/Animating_objects_with_WebGL")}} Hav...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/by_example/index.md
--- title: WebGL by example slug: Web/API/WebGL_API/By_example page-type: guide --- {{Next("Learn/WebGL/By_example/Detect_WebGL")}} _WebGL by example_ is a series of live samples with short explanations that showcase WebGL concepts and capabilities. The examples are sorted according to topic and level of difficulty,...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/hello_glsl/index.md
--- title: Hello GLSL slug: Web/API/WebGL_API/By_example/Hello_GLSL page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Raining_rectangles","Learn/WebGL/By_example/Hello_vertex_attributes")}} This WebGL example demonstrates a very basic GLSL shader program that draws a solid color square. > **Note:** This ex...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/video_textures/index.md
--- title: Video textures slug: Web/API/WebGL_API/By_example/Video_textures page-type: guide --- {{Previous("Learn/WebGL/By_example/Textures_from_code")}} This example demonstrates how to use video files as textures for WebGL surfaces. ## Textures from video {{EmbedGHLiveSample('dom-examples/webgl-examples/tutorial...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/canvas_size_and_webgl/index.md
--- title: Canvas size and WebGL slug: Web/API/WebGL_API/By_example/Canvas_size_and_WebGL page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Basic_scissoring","Learn/WebGL/By_example/Boilerplate_1")}} This WebGL example explores the effect of setting (or not setting) the canvas size to its element size in {{...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/simple_color_animation/index.md
--- title: Simple color animation slug: Web/API/WebGL_API/By_example/Simple_color_animation page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Clearing_by_clicking","Learn/WebGL/By_example/Color_masking")}} A very basic color animation created using {{Glossary("WebGL")}}, performed by clearing the drawing bu...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/color_masking/index.md
--- title: Color masking slug: Web/API/WebGL_API/By_example/Color_masking page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Simple_color_animation","Learn/WebGL/By_example/Basic_scissoring")}} This WebGL example modifies random colors by applying color masking to limit the range of displayed colors to speci...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/basic_scissoring/index.md
--- title: Basic scissoring slug: Web/API/WebGL_API/By_example/Basic_scissoring page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Color_masking","Learn/WebGL/By_example/Canvas_size_and_WebGL")}} In this example, we see how to draw simple rectangles and squares using WebGL scissoring operations. Scissoring e...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/detect_webgl/index.md
--- title: Detect WebGL slug: Web/API/WebGL_API/By_example/Detect_WebGL page-type: guide --- {{PreviousNext("Learn/WebGL/By_example","Learn/WebGL/By_example/Clearing_with_colors")}} This example demonstrates how to detect a {{Glossary("WebGL")}} rendering context and reports the result to the user. ## Feature-detect...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/scissor_animation/index.md
--- title: Scissor animation slug: Web/API/WebGL_API/By_example/Scissor_animation page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Boilerplate_1","Learn/WebGL/By_example/Raining_rectangles")}} A simple WebGL example in which we have some animation fun using scissoring and clearing operations. ## Animation...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/textures_from_code/index.md
--- title: Textures from code slug: Web/API/WebGL_API/By_example/Textures_from_code page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Hello_vertex_attributes","Learn/WebGL/By_example/Video_textures")}} This WebGL example provides a simple demonstration of procedural texturing with fragment shaders. That is,...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/raining_rectangles/index.md
--- title: Raining rectangles slug: Web/API/WebGL_API/By_example/Raining_rectangles page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Scissor_animation","Learn/WebGL/By_example/Hello_GLSL")}} A simple WebGL game that demonstrates clearing with solid colors, scissoring, animation, and user interaction. ## A...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/clearing_with_colors/index.md
--- title: Clearing with colors slug: Web/API/WebGL_API/By_example/Clearing_with_colors page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Detect_WebGL","Learn/WebGL/By_example/Clearing_by_clicking")}} An example showing how to clear a WebGL rendering context to a solid color. ## Clearing the WebGL context ...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/boilerplate_1/index.md
--- title: Boilerplate 1 slug: Web/API/WebGL_API/By_example/Boilerplate_1 page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Canvas_size_and_WebGL","Learn/WebGL/By_example/Scissor_animation")}} This example describes repeated pieces of code that will be hidden from now on, as well as defining a JavaScript ut...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/clearing_by_clicking/index.md
--- title: Clearing by clicking slug: Web/API/WebGL_API/By_example/Clearing_by_clicking page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Clearing_with_colors","Learn/WebGL/By_example/Simple_color_animation")}} This example demonstrates how to combine user interaction with WebGL graphics operations by clear...
0
data/mdn-content/files/en-us/web/api/webgl_api/by_example
data/mdn-content/files/en-us/web/api/webgl_api/by_example/hello_vertex_attributes/index.md
--- title: Hello vertex attributes slug: Web/API/WebGL_API/By_example/Hello_vertex_attributes page-type: guide --- {{PreviousNext("Learn/WebGL/By_example/Hello_GLSL","Learn/WebGL/By_example/Textures_from_code")}} This WebGL example demonstrates how to combine shader programming and user interaction by sending user in...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/constants/index.md
--- title: WebGL constants slug: Web/API/WebGL_API/Constants page-type: guide spec-urls: - https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7 --- {{DefaultAPISidebar("WebGL")}} The [WebGL API](/en-US/docs/Web/API/WebGL_API) provides several...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/webgl_best_practices/index.md
--- title: WebGL best practices slug: Web/API/WebGL_API/WebGL_best_practices page-type: guide --- {{DefaultAPISidebar("WebGL")}} WebGL is a complicated API, and it's often not obvious what the recommended ways to use it are. This page tackles recommendations across the spectrum of expertise, and not only highlights d...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/webgl_model_view_projection/fullcamerafov.svg
<svg xmlns="http://www.w3.org/2000/svg" width="531" height="432.367"><defs><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="1017.875" y1="1034.054" x2="1079.235" y2="637.946"><stop offset="0" stop-color="red" stop-opacity=".56"/><stop offset=".838" stop-color="red" stop-opacity=".56"/><stop offset="1" stop-col...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/webgl_model_view_projection/index.md
--- title: WebGL model view projection slug: Web/API/WebGL_API/WebGL_model_view_projection page-type: guide --- {{DefaultAPISidebar("WebGL")}} This article explores how to take data within a [WebGL](/en-US/docs/Web/API/WebGL_API) project, and project it into the proper spaces to display it on the screen. It assumes a...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/webgl_model_view_projection/camera_view_frustum.svg
<svg xmlns="http://www.w3.org/2000/svg" width="544" height="431.367"><path d="M0 415.562l19.756-15.319 12.256 15.805-19.756 15.319z"/><path d="M23.513 409.983l6.547-16.035 10.614 13.688z"/><path d="M36.609 401.5l180-400m-180 400l286.062-194.075M36.609 401.5L525.21 283.4M36.609 401.5l438.97-376.164" stroke="#000" stroke...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/webgl_model_view_projection/clip_space_graph.svg
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 432"><path fill="#F4F4F4" d="M119.9 128.3l14.8 220.3 222.5 9.2 60.5-112-4.5-190.9H220.9z"/><path fill="#00CE00" d="M280.7 103.3l-6.5-5.5-6.5 5.5 6.5-14.1z"/><path fill="#A50000" d="M371.8 201.6l5.4-6.5-5.4-6.6 14.1 6.6z"...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/types/index.md
--- title: WebGL types slug: Web/API/WebGL_API/Types page-type: guide spec-urls: - https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.1 - https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.1 - https://www.khronos.org/registry/webgl/extensions/EXT_disjoint_timer_query/ --- {{DefaultAPISidebar("Web...
0
data/mdn-content/files/en-us/web/api/webgl_api
data/mdn-content/files/en-us/web/api/webgl_api/basic_2d_animation_example/index.md
--- title: A basic 2D WebGL animation example slug: Web/API/WebGL_API/Basic_2D_animation_example page-type: guide --- {{DefaultAPISidebar("WebGL")}} In this WebGL example, we create a canvas and within it render a rotating square using WebGL. The coordinate system we use to represent our scene is the same as the canv...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/paymentresponse/index.md
--- title: PaymentResponse slug: Web/API/PaymentResponse page-type: web-api-interface browser-compat: api.PaymentResponse --- {{SecureContext_Header}}{{APIRef("Payment Request API")}} The **`PaymentResponse`** interface of the [Payment Request API](/en-US/docs/Web/API/Payment_Request_API) is returned after a user sel...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/methodname/index.md
--- title: "PaymentResponse: methodName property" short-title: methodName slug: Web/API/PaymentResponse/methodName page-type: web-api-instance-property browser-compat: api.PaymentResponse.methodName --- {{securecontext_header}}{{APIRef("Payment Request API")}} The **`methodName`** read-only property of the {{domxref(...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/requestid/index.md
--- title: "PaymentResponse: requestId property" short-title: requestId slug: Web/API/PaymentResponse/requestId page-type: web-api-instance-property browser-compat: api.PaymentResponse.requestId --- {{securecontext_header}}{{APIRef("Payment Request API")}} The **`requestId`** read-only property of the {{domxref("Paym...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/payerdetailchange_event/index.md
--- title: "PaymentResponse: payerdetailchange event" short-title: payerdetailchange slug: Web/API/PaymentResponse/payerdetailchange_event page-type: web-api-event status: - deprecated - non-standard browser-compat: api.PaymentResponse.payerdetailchange_event --- {{APIRef("Payment Request API")}}{{SecureContext_He...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/shippingoption/index.md
--- title: "PaymentResponse: shippingOption property" short-title: shippingOption slug: Web/API/PaymentResponse/shippingOption page-type: web-api-instance-property status: - deprecated - non-standard browser-compat: api.PaymentResponse.shippingOption --- {{securecontext_header}}{{APIRef("Payment Request API")}}{{D...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/details/index.md
--- title: "PaymentResponse: details property" short-title: details slug: Web/API/PaymentResponse/details page-type: web-api-instance-property browser-compat: api.PaymentResponse.details --- {{securecontext_header}}{{APIRef("Payment Request API")}} The **`details`** read-only property of the {{domxref("PaymentRespons...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/payerphone/index.md
--- title: "PayerResponse: payerPhone property" short-title: payerPhone slug: Web/API/PaymentResponse/payerPhone page-type: web-api-instance-property status: - deprecated - non-standard browser-compat: api.PaymentResponse.payerPhone --- {{securecontext_header}}{{APIRef("Payment Request API")}}{{Deprecated_header}}...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/shippingaddress/index.md
--- title: "PaymentResponse: shippingAddress property" short-title: shippingAddress slug: Web/API/PaymentResponse/shippingAddress page-type: web-api-instance-property status: - deprecated - non-standard browser-compat: api.PaymentResponse.shippingAddress --- {{securecontext_header}}{{APIRef("Payment Request API")}...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/retry/index.md
--- title: "PaymentResponse: retry() method" short-title: retry() slug: Web/API/PaymentResponse/retry page-type: web-api-instance-method browser-compat: api.PaymentResponse.retry --- {{securecontext_header}}{{APIRef("Payment Request API")}} The {{domxref("PaymentResponse")}} interface's **`retry()`** method makes it ...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/payeremail/index.md
--- title: "PaymentResponse: payerEmail property" short-title: payerEmail slug: Web/API/PaymentResponse/payerEmail page-type: web-api-instance-property status: - deprecated - non-standard browser-compat: api.PaymentResponse.payerEmail --- {{securecontext_header}}{{APIRef("Payment Request API")}}{{Deprecated_header...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/complete/index.md
--- title: "PaymentResponse: complete() method" short-title: complete() slug: Web/API/PaymentResponse/complete page-type: web-api-instance-method browser-compat: api.PaymentResponse.complete --- {{securecontext_header}}{{APIRef("Payment Request API")}} The {{domxref("PaymentRequest")}} method **`complete()`** of the ...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/payername/index.md
--- title: "PaymentRequest: payerName property" short-title: payerName slug: Web/API/PaymentResponse/payerName page-type: web-api-instance-property status: - deprecated - non-standard browser-compat: api.PaymentResponse.payerName --- {{securecontext_header}}{{APIRef("Payment Request API")}}{{Deprecated_header}}{{N...
0
data/mdn-content/files/en-us/web/api/paymentresponse
data/mdn-content/files/en-us/web/api/paymentresponse/tojson/index.md
--- title: "PaymentResponse: toJSON() method" short-title: toJSON() slug: Web/API/PaymentResponse/toJSON page-type: web-api-instance-method browser-compat: api.PaymentResponse.toJSON --- {{SecureContext_Header}}{{APIRef("Payment Request API")}} The **`toJSON()`** method of the {{domxref("PaymentResponse")}} interface...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/messageport/index.md
--- title: MessagePort slug: Web/API/MessagePort page-type: web-api-interface browser-compat: api.MessagePort --- {{APIRef("Channel Messaging API")}} The **`MessagePort`** interface of the [Channel Messaging API](/en-US/docs/Web/API/Channel_Messaging_API) represents one of the two ports of a {{domxref("MessageChannel...
0
data/mdn-content/files/en-us/web/api/messageport
data/mdn-content/files/en-us/web/api/messageport/messageerror_event/index.md
--- title: "MessagePort: messageerror event" short-title: messageerror slug: Web/API/MessagePort/messageerror_event page-type: web-api-event browser-compat: api.MessagePort.messageerror_event --- {{APIRef("Channel Messaging API")}} The **`messageerror`** event is fired on a {{domxref('MessagePort')}} object when it r...
0
data/mdn-content/files/en-us/web/api/messageport
data/mdn-content/files/en-us/web/api/messageport/start/index.md
--- title: "MessagePort: start() method" short-title: start() slug: Web/API/MessagePort/start page-type: web-api-instance-method browser-compat: api.MessagePort.start --- {{APIRef("Channel Messaging API")}} The **`start()`** method of the {{domxref("MessagePort")}} interface starts the sending of messages queued on t...
0
data/mdn-content/files/en-us/web/api/messageport
data/mdn-content/files/en-us/web/api/messageport/postmessage/index.md
--- title: "MessagePort: postMessage() method" short-title: postMessage() slug: Web/API/MessagePort/postMessage page-type: web-api-instance-method browser-compat: api.MessagePort.postMessage --- {{APIRef("Channel Messaging API")}} The **`postMessage()`** method of the {{domxref("MessagePort")}} interface sends a mess...
0
data/mdn-content/files/en-us/web/api/messageport
data/mdn-content/files/en-us/web/api/messageport/message_event/index.md
--- title: "MessagePort: message event" short-title: message slug: Web/API/MessagePort/message_event page-type: web-api-event browser-compat: api.MessagePort.message_event --- {{APIRef("Channel Messaging API")}} The **`message`** event is fired on a {{domxref('MessagePort')}} object when a message arrives on that cha...
0
data/mdn-content/files/en-us/web/api/messageport
data/mdn-content/files/en-us/web/api/messageport/close/index.md
--- title: "MessagePort: close() method" short-title: close() slug: Web/API/MessagePort/close page-type: web-api-instance-method browser-compat: api.MessagePort.close --- {{APIRef("Channel Messaging API")}} The **`close()`** method of the {{domxref("MessagePort")}} interface disconnects the port, so it is no longer a...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/usbisochronousintransferpacket/index.md
--- title: USBIsochronousInTransferPacket slug: Web/API/USBIsochronousInTransferPacket page-type: web-api-interface status: - experimental browser-compat: api.USBIsochronousInTransferPacket --- {{securecontext_header}}{{APIRef("WebUSB API")}}{{SeeCompatTable}} The `USBIsochronousInTransferPacket` interface of the [...
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/websockets_api/index.md
--- title: The WebSocket API (WebSockets) slug: Web/API/WebSockets_API page-type: web-api-overview browser-compat: api.WebSocket --- {{DefaultAPISidebar("WebSockets API")}} The **WebSocket API** is an advanced technology that makes it possible to open a two-way interactive communication session between the user's bro...
0
data/mdn-content/files/en-us/web/api/websockets_api
data/mdn-content/files/en-us/web/api/websockets_api/writing_websocket_servers/index.md
--- title: Writing WebSocket servers slug: Web/API/WebSockets_API/Writing_WebSocket_servers page-type: guide --- {{DefaultAPISidebar("WebSockets API")}} A WebSocket server is nothing more than an application listening on any port of a TCP server that follows a specific protocol. The task of creating a custom server t...
0