Difference between revisions of "TÖVE"
m (Added "SVG" keyword) |
|||
(One intermediate revision by one other user not shown) | |||
Line 40: | Line 40: | ||
{{#set:LOVE Version=11.2}} | {{#set:LOVE Version=11.2}} | ||
{{#set:Description=Animated vector graphics and SVG rendering}} | {{#set:Description=Animated vector graphics and SVG rendering}} | ||
+ | {{#set:Keyword=SVG}} | ||
[[Category:Libraries]] | [[Category:Libraries]] | ||
+ | |||
+ | == Other Languages == | ||
+ | {{i18n|TÖVE}} |
Latest revision as of 06:03, 2 June 2021
TÖVE brings basic vector graphics to LÖVE. It supports:
- Loading SVGs
- Constructing vector graphics on the fly
- Animating vector graphics
- Gradients
- Different Renderers
Example
local tove = require "tove"
-- load graphics from svg file. TÖVE also supports
-- constructing vector graphics on the fly.
svgData = love.filesystem.read("assets/rabbit.svg")
graphics = tove.newGraphics(svgData, 200)
-- for rendering, choose among three renderers:
-- "texture" will render into a bitmap
-- "mesh" will tesselate into a mesh
-- "gpux" will use a shader implementation
graphics:setDisplay("mesh", 200)
function love.draw()
-- render svg at mouse position.
x, y = love.mouse.getPosition()
graphics:draw(x, y)
end
Links
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info