From dccf89e623aa6cf93c953327d93facb57e500760 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 22 Jan 2022 20:17:04 -0700 Subject: [PATCH] note on pixabay direct url implementation --- src/hollywoo_flixel/AssetMacros.kiss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hollywoo_flixel/AssetMacros.kiss b/src/hollywoo_flixel/AssetMacros.kiss index 100dd6a..e451013 100644 --- a/src/hollywoo_flixel/AssetMacros.kiss +++ b/src/hollywoo_flixel/AssetMacros.kiss @@ -22,6 +22,8 @@ (assertProcess "curl" ["--output" file url])) file)) +// TODO alternate macro: accept a direct pixabay url instead, and extract the id from the url (last token in split by -) and pass "id" instead of "query" to the API and use that image + // This macro downloads an image from the Pixabay.com API and puts it in // your projects AssetPaths, returning the path for loadAsset(). (defMacro pixabayImage [searchQuery resultNumber]