File:Tinctured CoA.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 102 × 132 pixels. Other resolutions: 185 × 240 pixels | 371 × 480 pixels | 593 × 768 pixels | 791 × 1,024 pixels | 1,582 × 2,048 pixels.
Original file (SVG file, nominally 102 × 132 pixels, file size: 142 bytes)
File information
Structured data
Captions
Summary[edit]
DescriptionTinctured CoA.svg |
English: Example for an SVG varied by a contained script
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="102" height="132">
<script>
window.addEventListener("DOMContentLoaded", () =>
{ function getColor()
{ const R = Math.round(Math.random() * 255)
.toString(16)
.padStart(2, "0");
const G = Math.round(Math.random() * 255)
.toString(16)
.padStart(2, "0");
const B = Math.round(Math.random() * 255)
.toString(16)
.padStart(2, "0");
return `#${R}${G}${B}`;
}
document.querySelector("path").addEventListener("click", (e) =>
{ e.target.style.fill = getColor();
});
});
</script>
<path fill="#FCF" d="m1,65 50,65 50-65-50-65"/>
</svg>
|
|||
Date | ||||
Source | Own work using: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script | |||
Author | Sarangbot | |||
Permission (Reusing this file) |
|
|||
SVG development InfoField | This vector image was created with a text editor. |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 10:07, 6 March 2023 | 102 × 132 (142 bytes) | Sarangbot (talk | contribs) | == {{int:filedesc}} == {{Inform | dese = Example for an SVG varied by a '''contained script''' :'''Note:''' Uploading such SVG is abolished - you may perform the code with your browser <syntaxhighlight lang="html"> <?xml version="1.0"?> <svg xmlns="http://www.w3.org/2000/svg" width="102" height="132"> <script> window.addEventListener("DOMContentLoaded", () => { function getColor() { const R = Math.round(Math.random() * 255) .toString(16) .padStart(2, "0"); const G = Math.round(Math.r... |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 102 |
---|---|
Height | 132 |