Floodfill algorithm in Python(opens in new tab)
Learn how to implement and use the floodfill algorithm in Python. import js root = js.document.documentElement computed = js.window.getComputedStyle(root) BG_COLOUR = computed.getPropertyValue("--bg").strip() FG_COLOUR = computed.getPropertyValue("--tx").strip() UI_COLOUR = computed.getPropertyValue("--ui").strip() AC_COLOUR = computed.getPropertyValue("--accent").strip() AC2_COLOUR = computed.getPropertyValue("--accent-2").strip() RE_COLOUR = computed.getPropertyValue("--re").strip() BL_COLOUR = computed.getPropertyValue("--bl").strip() ...