CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 05:38:29 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"c4dc292c8f46b8659701778f8fd04a2e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=y8K5NNmybi2BsbftvqpOWCR35N8%2FInbkeFtEh%2FH1t8sApghIjE%2FSypsJ7TSEQa3SGBx2j3yWMh%2F54vmxNkf7escRMonrXiYWJPSKm8m0Awk3wnxfLOOtgXy9FjCXZJlQyuJTZObhvqW0TZb3utZbk25KB4T7sFLuzkQvYSsnY3JoAjBZGqfEkoIuAJVeevvmlaSPaj4hOCzNVtPbE96Z1Fo8L3JdVzyQyvP0G1q7EZnr8pr66Pkb7n%2BBpmS4v%2BhwQ0rY8OiLQqUKz8YsF485pw%3D%3D--Arm8A4zEstbMLg%2Bh--XsDLNIU5umQhLT8YXSsocw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2115131681.1753249109; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 05:38:29 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 05:38:29 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CAD4:351DD4:440FE9:5A4EA9:68807555
GitHub - jsm174/libtween: libtween is a tweening engine written in C. It is a port of "Javascript Tweening Engine" by @sole at: https://github.com/sole/tween.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5
libtween is a tweening engine written in C. It is a port of "Javascript Tweening Engine" by @sole at: https://github.com/sole/tween.js
License
jsm174/libtween
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
libtween 0.2 ------------ *** What is libtween? libtween is a tweening engine written in C. It is a port of "Javascript Tweening Engine" by @sole and others at: https://github.com/sole/tween.js *** How do I build the source? ./configure make sudo make install *** Usage To use libtween 1) create callback function that updates properties of an object 2) create a Tween_Engine 3) create Tween_Props structures that represents the start and to properties of an object 4) create a Tween with Tween_Engine, Tween_Props, duration, easing, and callback parameters 5) start the Tween 6) update the Tween_Engine in an animation loop 7) destroy Tween 8) destroy Tween_Engine RECT gRect; void update(Tween* tween) { gRect.x = tween->props->x; gRect.y = tween->props->y; } . . . Tween_Engine* engine = Tween_CreateEngine(); Tween_Props props = Tween_MakeProps(x1, y1, w1, h1, rot1); Tween_Props toProps = Tween_MakeProps(x2, y2, w2, h2, rot2); Tween* tween = Tween_CreateTween(engine, &props, &toProps, duration, TWEEN_EASING_ELASTIC_IN_OUT, update, NULL); Tween_Start(engine, SDL_GetTicks()); while(!terminate) { Tween_UpdateEngine(engine, SDL_GetTicks()); . . } Tween_Destroy(tween); Tween_Engine(engine); *** Examples Currently libtween comes with two examples, hello_world and bars. These examples closely match the tween.js examples at: https://sole.github.io/tween.js/examples/00_hello_world.html https://sole.github.io/tween.js/examples/01_bars.html To run the examples, you must have SDL2 installed on your system *** Differences from tween.js libtween is a thorough port of tween.js with a few differences. Tween_Props structures are used simulate javascript properties and contains the following variables: x, y, width, height, rotation, r, g, b, a Tween_Props currently has no concept of arrays. Because of this, the interpolation features of tween.js have not been ported.
About
libtween is a tweening engine written in C. It is a port of "Javascript Tweening Engine" by @sole at: https://github.com/sole/tween.js
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
You can’t perform that action at this time.