This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save frames to png images in Zajal 0.3.3 | |
def saveFrames | |
image = grab_screen | |
path = '/Users/yourName/Desktop/frame_ ' + frame.to_s() + '.png' | |
image.save( path ) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple animation example | |
# in Zajal | |
sizeBase = 0 | |
speed = 0.05 | |
setup do | |
title "Simple Circle" | |
framerate 60 | |
smoothing true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------------------------------------------------------------- | |
// Metodo scrollear al final de la pagina | |
scrollToBottom : function() | |
{ | |
var acceleration = 1; | |
var totalOffset = 0; | |
var step = 1; | |
var scrollTimer = setInterval( function() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get the term id first | |
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); | |
$currentTerm = $term->term_taxonomy_id; | |
// This is how you'd use it in your template | |
wp_list_categories( array( | |
'taxonomy' => 'YOUR_TAXONOMY', |
NewerOlder