Skip to content

Instantly share code, notes, and snippets.

View vmoratog's full-sized avatar
🏠
Working from home

Valentina Morato vmoratog

🏠
Working from home
View GitHub Profile
@vmoratog
vmoratog / rotateImage.ts
Created November 29, 2019 03:54
Rotate images in Canvas
const imageData = canvas.toDataURL()
const degrees = 90
const image = new Image();
image.onload = () => {
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.save();
ctx.translate(canvas.width / 2, canvas.height / 2);
ctx.rotate(degrees * Math.PI / 180);
ctx.drawImage(image, -image.width / 2, -image.width / 2);
@vmoratog
vmoratog / Enlaces.md
Last active February 10, 2020 04:51
ionic 4 intro

Instalar dependencias

npm i -g ionic cordova

Crear proyecto

ionic start nombreProyecto blank