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
Red [ | |
Title: "Draw Image Resizing Test" | |
Author: [REBOL version "Carl Sassenrath" Red port "Gregg Irwin" Reacting version "Marco Antoniazzi"] | |
Version: 0.0.2 | |
File: %resize-image.red | |
Needs: View | |
] | |
img: load/as any [ | |
attempt [read/binary img-url: https://pbs.twimg.com/profile_images/501701094032941056/R-a4YJ5K.png] |
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
Red [ | |
Author: "luce80" | |
Licence: 'PD | |
] | |
; from https://en.wikipedia.org/wiki/Julian_day | |
julian-day-number: func [day month year /local a y m] [ ; in Red 0.6.2, integer calcs give integer result so we could remove to-integer(s) | |
; TBD check params | |
a: to-integer 14 - month / 12 | |
y: year + 4800 - a |
NewerOlder