canvas 2D API
E247962
The canvas 2D API is a web graphics interface that lets developers draw and manipulate 2D shapes, text, images, and animations directly in an HTML `<canvas>` element using JavaScript.
All labels observed (4)
| Label | Occurrences |
|---|---|
| Canvas API | 2 |
| Canvas 2D API | 1 |
| CanvasRenderingContext2D interface | 1 |
| canvas 2D API canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T2245560 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: canvas 2D API Context triple: [HTML Living Standard, defines, canvas 2D API]
-
A.
Quartz 2D
Quartz 2D is Apple’s modern 2D graphics rendering and drawing engine used in macOS and iOS for high-quality, resolution-independent graphics.
-
B.
QuickDraw graphics system
The QuickDraw graphics system was Apple’s 2D graphics library and rendering engine that powered the visual interface and drawing operations of the classic Mac OS.
-
C.
SVG
SVG (Scalable Vector Graphics) is an XML-based vector image format for two-dimensional graphics that supports interactivity and animation, widely used for web graphics due to its scalability and resolution independence.
-
D.
LisaDraw
LisaDraw was a pioneering graphical drawing and diagramming application for the Apple Lisa computer, notable for its early use of a mouse-driven, WYSIWYG interface.
-
E.
DOM
The Document Object Model (DOM) is a platform- and language-neutral interface that represents structured documents like HTML and XML as a tree of objects, enabling programs and scripts to dynamically access and update their content and structure.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: canvas 2D API Target entity description: The canvas 2D API is a web graphics interface that lets developers draw and manipulate 2D shapes, text, images, and animations directly in an HTML `<canvas>` element using JavaScript.
-
A.
Quartz 2D
Quartz 2D is Apple’s modern 2D graphics rendering and drawing engine used in macOS and iOS for high-quality, resolution-independent graphics.
-
B.
QuickDraw graphics system
The QuickDraw graphics system was Apple’s 2D graphics library and rendering engine that powered the visual interface and drawing operations of the classic Mac OS.
-
C.
SVG
SVG (Scalable Vector Graphics) is an XML-based vector image format for two-dimensional graphics that supports interactivity and animation, widely used for web graphics due to its scalability and resolution independence.
-
D.
LisaDraw
LisaDraw was a pioneering graphical drawing and diagramming application for the Apple Lisa computer, notable for its early use of a mouse-driven, WYSIWYG interface.
-
E.
DOM
The Document Object Model (DOM) is a platform- and language-neutral interface that represents structured documents like HTML and XML as a tree of objects, enabling programs and scripts to dynamically access and update their content and structure.
- F. None of above. chosen
Statements (64)
| Predicate | Object |
|---|---|
| instanceOf |
HTML5 technology
ⓘ
JavaScript API ⓘ Web graphics API ⓘ |
| accessedVia |
canvas 2D API
self-linksurface differs
ⓘ
surface form:
CanvasRenderingContext2D interface
|
| alsoStandardizedBy |
W3C Recommendation
ⓘ
surface form:
W3C (HTML5 Recommendation)
|
| browserSupport |
Google Chrome
ⓘ
Microsoft Edge ⓘ Mozilla Firefox ⓘ Opera ⓘ Safari ⓘ |
| competesWith |
SVG
ⓘ
WebGL ⓘ |
| coordinateSystem | origin at top-left corner ⓘ |
| coordinateUnits | CSS pixels ⓘ |
| definedBy |
HTML Living Standard
ⓘ
surface form:
WHATWG HTML specification
|
| documentationURL | https://html.spec.whatwg.org/multipage/canvas.html ⓘ |
| drawingModel | immediate mode ⓘ |
| hasMethod |
arc
ⓘ
beginPath ⓘ clearRect ⓘ drawImage ⓘ fillRect ⓘ fillText ⓘ getImageData ⓘ lineTo ⓘ moveTo ⓘ putImageData ⓘ restore ⓘ save ⓘ strokeRect ⓘ strokeText ⓘ |
| hasProperty |
fillStyle
ⓘ
font ⓘ globalAlpha ⓘ globalCompositeOperation ⓘ lineWidth ⓘ strokeStyle ⓘ |
| introducedIn | HTML5 ⓘ |
| mdnURL | https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API ⓘ |
| obtainedBy | HTMLCanvasElement.getContext("2d") ⓘ |
| partOf | HTML Living Standard ⓘ |
| primaryLanguage | JavaScript ⓘ |
| retainsSceneGraph | false ⓘ |
| standardizedBy | WHATWG ⓘ |
| supports |
2D graphics rendering
ⓘ
animations ⓘ compositing ⓘ event-driven drawing ⓘ image rendering ⓘ paths ⓘ pixel manipulation ⓘ raster-based drawing ⓘ shapes ⓘ text rendering ⓘ transformations ⓘ |
| supportsGradient | CanvasGradient ⓘ |
| supportsOffscreen | OffscreenCanvas (in supporting browsers) ⓘ |
| supportsPattern | CanvasPattern ⓘ |
| supportsStateStack | true ⓘ |
| typicalUse |
custom UI components
ⓘ
data visualizations ⓘ games ⓘ image editors ⓘ |
| usedWith | HTML <canvas> element ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: canvas 2D API Description of subject: The canvas 2D API is a web graphics interface that lets developers draw and manipulate 2D shapes, text, images, and animations directly in an HTML `<canvas>` element using JavaScript.
Referenced by (5)
Full triples — surface form annotated when it differs from this entity's canonical label.