text – part of the sprite or dynamically generated

I am trying to reproduce the same stamping tool as the one we found in the video game "Papers, Please".

In my case I want my users to be able to modify the text they are going to stamp. I will use a similar blocky font.

As you probably noticed in this sprite, the top of the letters is clearer in order to give an effect of depth.

How should I proceed to copy the same effect? The only solution that came to mind was to create sprites for each needed letter and then include them dynamically over my sprite but there has to be a more efficient way. I suspect the author directly drew them in the sprite but I’m not sure.

red stamping tool from the video game "Papers, Please"

FunctionCompile returns Part::partd: Part specification 151345[[1]] is longer than depth of object

Today, I install mathematica 12.3 on my computer(windows), then I run the FunctionCompile code

cf = FunctionCompile[Function[Typed[arg, "MachineInteger"], arg + 1]] 

but it goes wrong, and return the information

Part::partd: Part specification 151345[[1]] is longer than depth of object 

I test on my another computer, FunctionCompile works well, so what’s happening here?

Disable part of endpoints wordpress api

I try to disable some parts of the API :

  • display list of users
  • display detail of users

But i want to keep the api to create and update users.

I did this :

add_filter( 'rest_endpoints', 'disable_custom_rest_endpoints' ); function disable_custom_rest_endpoints( $  endpoints ) {               if ( isset( $  endpoints['/wp/v2/users'] ) ) {         unset( $  endpoints['/wp/v2/users'] );     }     if ( isset( $  endpoints['/wp/v2/users/(?P<id>[\d]+)'] ) ) {         unset( $  endpoints['/wp/v2/users/(?P<id>[\d]+)'] );     }      return $  endpoints; } 

My problem : this delete the possibility to update or create user as well

Is there another way to do it ?

Thanks

Can you benefit from Horde Breaker if you attack as part of Booming Blade or Green Flame Blade?

The booming blade and green-flame blade cantrips from the Sword Coast Adventurer’s Guide both have the particularity of including a single melee weapon attack as part of their casting.

Several martial abilities, like Extra Attack or the Martial Arts’s bonus attack, do not work with these cantrips because they require the Attack action to be used.

However, the Hunter Ranger’s Horde Breaker ability (which lets you do an additional attack on another target with the same weapon once per turn) only requires an attack with a weapon, not necessarily the Attack action. Therefore, I’m wondering if a Hunter Ranger with Horde Breaker could get that additional-attack-on-different-target-with-same-weapon when using booming blade or green-flame blade.

Coloured integers: Select outcome unexpected (part of a graph based problem using coloured vertex labels)

I use the following code output and need to retrieve the position of the part containing the blue-coloured integer 4

Part 1:

List[Placed[List[       Style[3, Rule[LineColor, RGBColor[1, 0, 0]],         Rule[FrontFaceColor, RGBColor[1, 0, 0]],         Rule[BackFaceColor, RGBColor[1, 0, 0]],         Rule[GraphicsColor, RGBColor[1, 0, 0]],         Rule[FontColor, RGBColor[1, 0, 0]]],        Style[4, Rule[LineColor, RGBColor[0, 0, 1]],         Rule[FrontFaceColor, RGBColor[0, 0, 1]],         Rule[BackFaceColor, RGBColor[0, 0, 1]],         Rule[GraphicsColor, RGBColor[0, 0, 1]],         Rule[FontColor, RGBColor[0, 0, 1]]]], List[Before, After]], Placed[      List[Style[4, Rule[LineColor, RGBColor[1, 0, 0]],         Rule[FrontFaceColor, RGBColor[1, 0, 0]],         Rule[BackFaceColor, RGBColor[1, 0, 0]],         Rule[GraphicsColor, RGBColor[1, 0, 0]],         Rule[FontColor, RGBColor[1, 0, 0]]],        Style[3, Rule[LineColor, RGBColor[0, 0, 1]],         Rule[FrontFaceColor, RGBColor[0, 0, 1]],         Rule[BackFaceColor, RGBColor[0, 0, 1]],         Rule[GraphicsColor, RGBColor[0, 0, 1]],         Rule[FontColor, RGBColor[0, 0, 1]]]], List[Before, After]]] 

I tried:

Part 2:

        Select[List[Placed[List[               Style[3, Rule[LineColor, RGBColor[1, 0, 0]],                 Rule[FrontFaceColor, RGBColor[1, 0, 0]],                 Rule[BackFaceColor, RGBColor[1, 0, 0]],                 Rule[GraphicsColor, RGBColor[1, 0, 0]],                 Rule[FontColor, RGBColor[1, 0, 0]]],                Style[4, Rule[LineColor, RGBColor[0, 0, 1]],                 Rule[FrontFaceColor, RGBColor[0, 0, 1]],                 Rule[BackFaceColor, RGBColor[0, 0, 1]],                 Rule[GraphicsColor, RGBColor[0, 0, 1]],                 Rule[FontColor, RGBColor[0, 0, 1]]]], List[Before, After]], Placed[              List[Style[4, Rule[LineColor, RGBColor[1, 0, 0]],                 Rule[FrontFaceColor, RGBColor[1, 0, 0]],                 Rule[BackFaceColor, RGBColor[1, 0, 0]],                 Rule[GraphicsColor, RGBColor[1, 0, 0]],                 Rule[FontColor, RGBColor[1, 0, 0]]],                Style[3, Rule[LineColor, RGBColor[0, 0, 1]],                 Rule[FrontFaceColor, RGBColor[0, 0, 1]],                 Rule[BackFaceColor, RGBColor[0, 0, 1]],                 Rule[GraphicsColor, RGBColor[0, 0, 1]],                 Rule[FontColor, RGBColor[0, 0, 1]]]], List[Before, After]]], Select[#[[1]][[2]], IntegerQ] &  == 4] 

Which produces { }

However

Part 3

 a = Placed[     List[Style[3, Rule[LineColor, RGBColor[1, 0, 0]],        Rule[FrontFaceColor, RGBColor[1, 0, 0]],        Rule[BackFaceColor, RGBColor[1, 0, 0]],        Rule[GraphicsColor, RGBColor[1, 0, 0]],        Rule[FontColor, RGBColor[1, 0, 0]]],       Style[4, Rule[LineColor, RGBColor[0, 0, 1]],        Rule[FrontFaceColor, RGBColor[0, 0, 1]],        Rule[BackFaceColor, RGBColor[0, 0, 1]],        Rule[GraphicsColor, RGBColor[0, 0, 1]],        Rule[FontColor, RGBColor[0, 0, 1]]]],      List[Before, After]][[1]][[2]]  Select[a,IntegerQ] 

produces 4 as expected.

Hence I would have expected Part 2 to produce the expression containing the blue label 4, i.e. the following result

Placed[List[           Style[3, Rule[LineColor, RGBColor[1, 0, 0]],             Rule[FrontFaceColor, RGBColor[1, 0, 0]],             Rule[BackFaceColor, RGBColor[1, 0, 0]],             Rule[GraphicsColor, RGBColor[1, 0, 0]],             Rule[FontColor, RGBColor[1, 0, 0]]],            Style[4, Rule[LineColor, RGBColor[0, 0, 1]],             Rule[FrontFaceColor, RGBColor[0, 0, 1]],             Rule[BackFaceColor, RGBColor[0, 0, 1]],             Rule[GraphicsColor, RGBColor[0, 0, 1]],             Rule[FontColor, RGBColor[0, 0, 1]]]], List[Before, After]] 

On closer inspection I tried the following:

FullForm[Select[a, IntegerQ]] 

which results in

Style[4] 

However, Style[4] should not be the result of a selection for integers.

What is going on?

Which Part Adsense Code To Remove

I am using a custom Blogger template and the Layout widgets are not working. I need to remove a Adsense Link ad.

I tried removing the code, but the whole site disappeared. Could someone tell me which part of the code should I delete.

The HTML code is:

<b:widget id='HTML3' locked='false' title='' type='HTML' version='1'>
<b:widget-settings>
<b:widget-setting name='content'>&lt;center&gt;&lt;script async…

Which Part Adsense Code To Remove

Can you use free action(s) as part of a Ready Action?

The most obvious example of this, which came up in regards to another question’s answer, is Quickened Casting Metamagic, but there may be other Free Actions that modify following actions or might otherwise be useful as part of Readying to act.

Are you able to perform one or more Free Actions as part of and/or when you perform your Ready activity activation?

How do I make a part of my map off limit?

I’m looking for a common way to make zones in my 3D map "off limit"? The kind of thing you see in eg Hitman games where NPCs will get suspicious if you step into certain areas. Will need several areas like this, corridors, rooms etc.

Is it just to create invisible collider objects that set an offLimits bool to true, or is there a preferable way?

What is the right way to add PHP code to a certain part of a page

I know I can add PHP to the functions file. And I know I can make a plugin.

I basically need to make a calculator of sorts and send the values to an email signup.

What is the best way to achieve this. I think a plugin, but then how would I position the plugin at a place on an already existing page?

Sorry if this is a noob question, I really want to understand the correct way to achieve this before starting.